harbor run -t openthoughts/tasktrove-exp-rpt-taco-v2-taco-3348harbor download openthoughts/tasktrove-exp-rpt-taco-v2-taco-3348Chef is facing a decision regarding which laptop to buy among 10 different options. To assist him, he consults his friends for their recommendations. Each of his friends recommends a specific laptop, and Chef wants to determine which laptop has the most endorsements. In the event of a tie (multiple laptops receiving the same highest number of recommendations), Chef will feel CONFUSED.
Your task is to determine which laptop Chef will buy based on the recommendations from his friends. If there are multiple laptops with the maximum number of recommendations, print "CONFUSED".
T (1 ≤ T ≤ 200) — the number of test cases.N (1 ≤ N ≤ 1000) — the number of Chef's friends.N space-separated integers A_1, A_2, ..., A_N where each A_i (1 ≤ A_i ≤ 10) denotes the recommendation of the i-th friend.For each test case, output a single line:
You may print "CONFUSED" in any case variation (e.g., "Confused", "confused", etc. are all acceptable).
1 ≤ T ≤ 2001 ≤ N ≤ 10001 ≤ A_i ≤ 104
5
4 4 4 2 1
7
1 2 3 4 5 6 6
6
2 2 3 3 10 8
4
7 7 8 8
4
6
CONFUSED
CONFUSED
Place your solution code in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.