


The leaderboard scores are in descending order.
The game scores are given in ascending order.
The first line of input contains an integer ‘T’ denoting the number of test cases.
The next ‘4*T’ lines represent the ‘T’ test cases.
The first line of each test case contains an integer ‘N’ denoting the number of players on the leaderboard.
The second line of each test case contains ‘N’ space-separated integers denoting the leaderboard scores in decreasing order.
The third line of each test case contains an integer ‘M’ denoting the number of rounds of the game.
The last line contains ‘M’ space-separated integers denoting the game scores, for each round, in ascending order.
For each test case, return the ranks of the player corresponding to the game scores obtained.
You are not required to print the expected output, it has already been taken care of. Just implement the function.
1 <= T <= 50
1 <= N <= 10^4
1 <= M <= 10^3
0 <= LEADERBOARD_SCORE[i] <= 10^9
0 <= PLAYER_SCORE[i] <= 10^9
Time limit: 1 second
For the score of the player for each round, we will be finding the appropriate position in the leaderboard by comparing it with the scores in the leaderboard.
For the score of the player for each round, we will be finding the appropriate position in the leaderboard by comparing it with the scores in the leaderboard.
For the score of the player for each round, we will be finding the appropriate position in the leaderboard by comparing it with the scores in the leaderboard.
4. Store these positions and then return the complete answer.