From the figure given in the question, the speed of block will be maximum at t=0,2 and 4 . So, the block can execute the simple harmonic motion. At extreme points at time t=1s and t=3s, the direction of acceleration is change. So, at t=4s the speed of the block is maximum.