A particle moves according to the law a=−ky. Find the velocity as a function of distance y,v0 is initial velocity and particle is at origin initially.