Coding Questions on Binary Search