Iterative Binary Search Python Algorithm Interview