Alpha Net Interview Question

Iterate through a binary search in sql