Problem Solving Using Binary Search Algorithm Python