Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use a dictionary to count the frequency of each number.
Solve with full IDE support and test cases