(b) Body collides elastically with walls of room. So, there will be no loss in its energy and it will remain colliding with walls of room after a regular time interval, so it’s motion will be periodic. Since acceleration is not proportional to displacement, so it’s motion is not SHM