Using Gauss's law electric field inside solid sphere , E.4πr2=ρ.(4/3)πr3ϵ0 where ρ= charge density and here Q=ρ(4/3)πR3.
Thus, E=Qr4πϵ0R3
The force on charge −q is F=−qE=−qQr4πϵ0R3
or md2rdt2=−qQr4πϵ0R3⇒d2rdt2=−(qQ4πϵ0mR3)r
Thus, ω=2πf=√qQ4πϵ0mR3⇒f=12π√qQ4πϵ0mR3
thus x=4