A uniform chain of length $\mathrm{L}$ and mass $\mathrm{M}$ is lying on a smooth table and $(1 / 4)^{\text {th }}$ of its length is hanging vertically down over the edge of the table. If $g$ is acceleration due to gravity, the work required to pull the hanging part on to the table is
(A) MgL
(B) $\mathrm{MgL} / 9$
(C) $\mathrm{MgL} / 18$
(D) $\mathrm{MgL} / 32$