

s = {1, 4, 11} e = {9, 5, 13}
In the given example, the first friend is available between dates 1 to 9, the second is available on dates 4 and 5, and the third is available on dates 11 to 13. Hence he can meet a maximum of only two friends on dates 4 and 5.
Hence the answer is 2.
The first line contains a single integer ‘T’ denoting the number of test cases, then each test case follows:
The first line of each test case contains a single integer ‘N’ denoting the total number of friends.
The second line of the test case denotes an array of ‘N’ integers ‘s’ denoting the starting date when the ith friend will be available.
The third line of the test case denotes an array of ‘N’ integers ‘e’ denoting the ending date when the ith friend will be available.
For each test case, print a single integer “answer”, denoting the maximum number of friends he can meet.
Output for each test case will be printed in a separate line.
You are not required to print anything; it has already been taken care of. Just implement the function.
1 <= T <= 100
1 <= N <= 5000
1 <= s[i], e[i] <= 10^9
Time limit: 1 sec
In this approach, we will take a map of integers in which we will increment the counter at index ‘i’ for every s[i] and decrement the counter of index ‘i’ for every index ‘i’ and return the day on which a maximum number of friends were present.
The steps are as follows:
Vertical Order Traversal of Binary Tree
Longest String Chain
Longest String Chain
Uniform K-Subarray Sums
First Repeating Element
Alphabetical Character Frequency