Sponsored
Use these hints if you're stuck. Try solving on your own first.
Could you count the frequency of each even element in the array?
Would a hashmap help?
Solve with full IDE support and test cases