SAP interview question

1 question was on using binary search to solve problem