Remember it given that a<=b


#1

Now observe in given code in second loop.