Google interview question

Implement binary search