|All-time Popular Problems|
|Even and odd elements at even and odd positions|
|11 Pattern Count|
|Is Binary Number Multiple of 3|
|Rotating an Array|
|Element with left side smaller and right side greater|
|Determine if Two Trees are Identical|
|Largest Number formed from an Array|
|Minimum number of jumps|
Consider a big party where a log register for guest’s entry and exit times is maintained. Find the time at which there are maximum guests in the party. Note that entries in register are not in any order.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an integer n denoting the size of the entry and exit array. Then the next two line contains the entry and exit array respectively.
Print the maximum no of guests and the time at which there are maximum guests in the party.
1 2 10 5 5
4 5 12 9 12
13 28 29 14 40 17 3
107 95 111 105 70 127 74