Let the particle be at a distance x from the origin at a point P at any instant. The electric field at P due to charge on the circular ring is
Small amount of work done in moving the particle toward O for an infinitsinally small distance dx dW = Fdx
This work done needs to be supplied by the kinetic energy given to the charge initially.
This is the minimum velocity through which the charge q must be projected to reach the origin.