You are given an array A of length N . An element X is called dominant if: The frequency (count) of X is strictly greater than the frequency of any other element in the array. Example: A=[2,1,4,4,4] → 4 appears 3 times, others appear fewer times → 4 is dominant. A=[1,2,2,1] → both 1 and 2 appear 2 times → no dominant element. Your task: For each test case, check whether any dominant element exists. Problem Restatement For each test case: You are given an integer N — the length of the array. You are given N integers A1, A2, ...., An. You must determine if there exists some value X such that: freq(X) > freq(Y) for all Y != X . If such an X exists, print "YES" , otherwise print "NO" . Input Format: First line: Integer T — number of test cases. For each test ...