The volume of that cube is V(cube) = h³ = 12*12*12 = 1728 in³
The volume of that cylinder is V(cylinder) = πr²h = π*3*3*12 = 339.29 in³
Notice that the cube is a hollow as the volume of it is reduced. Therefore,
V(hollow cube) = 1728 - 339.29 = 1388.71 in³
Hope it helps ☺️✌️