1.

Given three numbers A, B, C you have to write a function named calcSum() which takes these 3 numbers as arguments and returns their sum.

Input:
The input line contains T, which denotes the number of testcases. Then T test cases follow. Each test case consists of a single line which contains three space separated integers A, B, and C.

Output:
Corresponding to each testcase, output sum of A, B and C in a new line.

User Task:
Since this is a functional problem you don't have to worry about input, you just have to complete the function calcSum().

Constraints:
1 <= T <= 105
1 <= A <= 102
1 <= B <= 102
1 <= C <= 102

Example:
Input:
3
1 2 3
5 6 7
2 5 3Output:
6
18
10

 

2.

Ankush challenges Ankit to complete his code which implements the functionality of checking if the first and last name of a student is an anagram of each other or not.

An anagram of a string is another string that contains same characters, only the order of characters can be different. For example, “act” and “tac” are anagram of each other. Invest your time to study the locked code and complete it accordingly.

Input:
The first line contains the number of test cases, each test case consists of one line input containing 2 space separated strings representing the first and last name of the student.

Output:
For each test case T, the output should consist of a single line - ANAGRAM or NOT ANAGRAM depending upon if the 2 given strings are anagram of each other or not.

Constraints:
1 <= T <= 100

Example:
Input:

2
rahul garg 
ankit kitan

Output:
NOT ANAGRAM
ANAGRAM

3.

Mytat is hosting a contest and N students are interested in it. But some of them are friends. Mytat wants to make two teams such that no two friends are on the same team.  The task is to check is it possible for the mytat two make two teams or not

Note:
1. All the students are numbered from 1 to N.
2. If A is a friend of B and B is a friend of C, that doesn't mean that A is friend of C

Input:
1. The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows.
2. The first line of each test case contains two space_separated integers N and M.
3. Next M lines contain two space-separated integers u and v, represents u is a friend of v


Output: For each test case, print the "yes" if possible, otherwise print "no" (without quotes).


Constraints:
1. 1 <= T <= 100
2. 2 <= N <= 50
3. 0 <= M <= min(1000, N*(N-1)/2)


Example:
Input:

2
4 2
1 2
3 4
3 3
1 2
2 3
3 1

Output:
yes
no

4.

Implement different operations on a ArrayList A .
 

Input:
The first line of input contains an integer T denoting the no of test cases . Then T test cases follow. The first line of input contains an integer Q denoting the no of queries . Then in the next line are Q space separated queries .
A query can be of five types 
1. a x (Adds an element x to the ArrayList A at the end )
2. b (Sorts the ArrayList A in ascending order )
3. c (Reverses the ArrayList A)
4. d (prints the size of the ArrayList)
5. e (prints space separated values of the ArrayList)
5. f  (Sorts the ArrayList A in descending order)


Output:
The output for each test case will  be space separated integers denoting the results of each query . 

Constraints:
1<=T<=100
1<=Q<=100

Example:

Input
2
6
a 4 a 6 a 7 b c e
4
a 55 a 11 d e
 
Output

7 6 4
2 55 11

5.

Implement different operations on a set s .

Input:
The first line of input contains an integer T denoting the no of test cases . Then T test cases follow. The first line of input contains an integer Q denoting the no of queries . Then in the next line are Q space separated queries .
A query can be of four types 
1. a x (inserts an element x to the set s)
2. b (prints the contents of the set s in increasing order)
3. c x (erases an element x from the set s)
4. d x (prints 1 if the element x is present in the set else print -1)
5. e (prints the size of the set s)

Output:
The output for each test case will  be space separated integers denoting the results of each query .

Constraints:
1 <= T <= 100
1 <= Q <= 100

Example:
Input:
2
6
a 1 a 2 a 3 b c 2 b
5
a 1 a 5 e d 5 d 2

Output:
1 2 3 1 3
2 1 -1