Let v be the velocity of the block when it leaves the spring.
Applying the law of conservation of energy,
Elastic potential energy of the spring = Kinetic energy of the block
For the projectile motion,
Therefore, the block hits the ground at 1 m from the free end of the spring in the horizontal direction.