A uniform chain of length `L` and mass `M` is lying on a smooth table and one-third of its length is hanging vertically down over the edge of the table. If g is the acceleration due to gravity, the work required to pull the hanging part on to the table is
A. MgL
B. `(MgL)/(3)`
C. `(MgL)/(9)`
D. `(MgL)/(18)`