Tripadvisor Interview Question

binary search of a sorted array