Sponsored
Use these hints if you're stuck. Try solving on your own first.
Expected runtime complexity is in <i>O</i>(log <i>n</i>) and the input is sorted.
Solve with full IDE support and test cases