Sponsored
Use these hints if you're stuck. Try solving on your own first.
The constraints are small. Brute force checking each value in the array.
Solve with full IDE support and test cases