A block of mass $m=0.1 \mathrm{~kg}$ is released from a height of $4 \mathrm{~m}$ on a curved smooth surface. On the horizontal smooth surface, it collides with a spring of force constant $800 \mathrm{~N} / \mathrm{m}$. The maximum compression in spring will be $\left(g=10 \mathrm{~m} / \mathrm{s}^{2}\right)$
(A) $1 \mathrm{~cm}$
(B) $5 \mathrm{~cm}$
(C) $10 \mathrm{~cm}$
(D) $20 \mathrm{~cm}$