First, let's calculate the total mechanical energy when the block is at rest and the spring is compressed 5 cm:

Now, let's use this total energy to calculate the velocity when the spring is compressed by 2.5 cm:

Therefore the speed is 1.026 m/s.
Answer:
If your form is correct (b)
I believe it is called centripetal force <span />