A block of mass 50 kg is projected horizontal on a rough horizontal floor. The coefficient of friction between the block and the floor is 0.1. The block strikes a light spring of stiffness `k = 100 N//m` with a velocity `2 m//s`, the maximum compression of the spring is
A. 1 m
B. 2 m
C. 3 m
D. 4 m