Unable to understand LOWSUM solution

I am unable to understand the following solution of http://www.codechef.com/problems/LOWSUM .
Kindly explain the approach involved in this solution http://www.codechef.com/viewsolution/3002312 .

//