....
Vol of cube = side^3 = 30^3 (1)
Vol of sphere = 4/3 pi * (15)^3 (2)
Vol not occupied by the sphere = (1) - (2) =
30^3 - (4/3)pi (15)^3 =
(27000 - 4500pi) cm^3