Visa Inc. interview question

Binary search and sorted algorithm