Veeva Systems interview question

implement binary search