XorLabs Interview Question

Binary search