here's an another method : consider a length x from the bottom of the hanging chain and a dx part just above it ! now, here we can think of an integration process as the work done in lifting every element will be different as they are at different heights from the datum h= 0 now , since the dx part is too small, the work done in lifting the dx part after the x part will be actually very very close
so , dw = M/ L * dx * g * x integrating the above and putting the limits from 0 to L/3 , we get W = mgl / 18 !!! what i think that integration is far more better in such type of problems !! anyways !! sorry i wnt offline so, when will u be online now ?