Tripadvisor interview question

binary search of a sorted array