Sponsored
Use these hints if you're stuck. Try solving on your own first.
Count the number of times each target value follows the key in the array.
Choose the target with the maximum count and return it.
Solve with full IDE support and test cases