The particle appears to be performing simple harmonic motion along Z direction, this observer must move in xy plane with his position vector changing with time as,
−→Ro=(a sin ω t)^i+(a cos ω t)^j
This is a circle with radius a. Angular speed of the observer is ω and his linear speed is v=aω.
Position of particle relative to the observer →R−−→Ro=(b sin ω0t)^k
He finds that the particle oscillates along z direction with angular frequency = ωo.
Time period of oscillation of the particle is,
To=2πωo.
In this time observer travels a distance
∴s=vTo=2π a[ωωo]