Recro Interview Question

Binary search problem