Kanjoya interview question

Implement binary search