One end of a spring of force constant K is fixed to a vertical wall and the other to a body of mass m resting on a smooth horizontal surface. There is another wall at a distance x0