Hello, could you please explain me the working of this code ?
I am facing doubt in compare function. I want to know what are the two numbers a and b. I mean what numbers of the coins array it is comparing and also please tell me why we put -1 in statement at line number 16 ?