Coding Blocks Interview Question

They asked me implement simple binary search