BETA
This is a school problem. Successful submissions of this are not counted in user ratings.

Submissions : 838 Accuracy :

30.19

Display longest name
       

Given a list of names, display the longest name.

Input: First line of input contains an integer T, the number of test cases. T test cases follows. First line of each test case contains an integer N, i.e total number of names. Next N lines contains names of different length.


Output: Longest name in the list of names.


Constraints:

1<=T<=10
1<=N<=10


Example:

Input:
1
5
Geek
Geeks
Geeksfor
GeeksforGeek
GeeksforGeeks

Output:
GeeksforGeeks

**For More Examples Use Expected Output**


Contributor: Harsh Agarwal

Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.