BETA
School Problem's Submission isn't counted in score!

Submissions: 1432 Accuracy:

33.1%

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 Input/Output Examples Use 'Expected Output' option **

Contributor: Harsh Agarwal

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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