Block interview question

A question based on Binary Search.