Alpha Net interview question

Iterate through a binary search in sql