Money change problem

sir here I do not know how does the comparator work
return(a<=b) ??

Hey @mzk1994
Follow this discussion Comparator in Lower bound

sir please explain me what is (a and b) which are the parameters of compare function?

Hey @mzk1994
B is value to be searched and a is array values