Solution:
SOLUTION:−
The mass of hanging chain is m / 3, length is l / 3 .
Now the the center of mass of hanging chain is at a distance of l / 6 from table top.
The mass hanging over the edge is mg / 6, so initial force required to pull the hanging mass on the table =mg / 3.
The final force required to pull the remaining mass = 0.
So, Average force =mg / 6
Displacement in the chain = l / 3.
Thus, work done by the variable force
= force x distance = 
Where 1 / x is the fraction of the length of the chain which is initially hanging
Here, x = 3
So, work done = 