Meta Interview Question

Binary search implementation