Oscillatory motion does not necessarily imply purely sinusoidal motion. As kuruman said. Here you have to find the time taken by the particle from the initial position x=R to the position x=0 and then multiply the result with 4 to obtain the time period.