Let a be the length of edge for the cube, with maximum possible volume diagonal length =2R⇒3a=2R⇒a=32R. As densities of sphere and cube are equal. Let M′ be mass of the cube, 34πR3M=a3M′⇒M′=4πR33Ma3. Moment of inertia of cube about an axis passing through its center is, I=12M′(2a2)=4πR33Ma3×122a2=8πR3Ma5.
also, a=32R⇒I=8π×93R3M×32R5=93π4MR2.