Coding Blocks interview question

They asked me implement simple binary search