lower_bound() returns the first element which is not less than a given element,so we passed our comparator to reverse its function.
So if we pass 100 why are we not getting 50 back?We have also subtracted a -1 in the code ??I didnt understand how its working