Meta interview question

Binary search implementation