Company: Providence
Difficulty: medium
Count Pairs of Same Numbers Problem Description Write a program to count the number of pairs of the same number that can be formed by using the elements of a given array arr. If any number is repeated an odd number of times, then the last remaining number will not be considered as a pair. Also, if there is no pair available in the given array, print "No pairs found". Read the input from STDIN and print the output to STDOUT. Do not print arbitrary strings anywhere in the program, as these contribute to the standard output and test cases will fail. Constraints N (1 <= N <= 1,00,000) arr (1 <= arr <= 10^9) If any number is repeated an odd number of times, then the remaining last number will not be considered as a pair. Input Format The first line of input should consist of an integer N. The second input line should consist of N integers separated by a single white space. Output Format The only output line should display the counts of the pair of the same numbers in the given array. And, i