Capgemini interview question

Write a c++ code for binary search on notepad.