Let Rs and Rb be the radii of solid sphere and hollow sphere respectively. Since solid sphere and hollow sphere have same moment of inertia.
This is the required ratio of their diameters.