Problem Solving Using Binary Search Algorithm