One end of a spring of force constant is fixed to a vertical wall and the other to a block of mass resting on a smooth horizontal surface. There is another wall at a distance , from the block. The spring is then compressed by and released. The time taken by the block to strike the other wall is

Given,
Maximum compression
Distance of block from wall
Mass of block
Since initially block is at extreme position, its equation will be-
When block hit the wall, its position will be
Put this value in equation of -
For given -