Problem Solving Using Binary Search In Cpp