Capgemini Interview Question

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