**Compilation/Execution Result:**

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.

**Input:**

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.

**Output:**

Print the maximum no of guests and the time at which there are maximum guests in the party.

**Constraints:**

1<=T<=10^5

1<=N<=10^5

1<=entry[i],exit[i]<=10^5

**Example:
Input:**

2

5

1 2 10 5 5

4 5 12 9 12

7

13 28 29 14 40 17 3

107 95 111 105 70 127 74

3 5

7 40

Author: Ayush Govil 1

Rajat Thakur 2 | 195 |

surbhi_7 | 185 |

Ibrahim Nash | 183 |

Anupam Prakash 1 | 167 |

jon_snow_zinda_hai | 159 |

Ibrahim Nash | 697 |

ashrepos | 566 |

shi143din | 427 |

RealHorror | 423 |

shaktiman_shaktiman_shaktiman | 363 |

akhayrutdinov | 4055 |

sanjay05 | 3445 |

Quandray | 2460 |

Michael Riegger | 2232 |

Jasleen Kaur 2 | 2012 |