Veeva Systems Interview Question

implement binary search