Adobe Interview Question

implement binary search