Sponsored
Use these hints if you're stuck. Try solving on your own first.
As the array is circular, use modulo to find the correct index.
The constraints are low enough for a brute-force solution.
Solve with full IDE support and test cases