Exercise Qn 6 done
Use binary search
Till Qn 9. Need to fix Qn 7