Amazon interview question

binary search and follow up