Block interview question

Implement a binary search algorithm