Progress Interview Question

binary search code