Given a list of names, display the longest name.
First line of input contains an integer T, the number of test cases. For each test case, there will be two lines. First line contains integer N i.e. total number of names, and second line contains N space seperated names of different length.
Longest name in the list of names.
1 <= T <= 10
1 <= N <= 10
1 <= |length of name| <= 1000
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.