Here, we know that both the body is made up of same material, hence its orientation will do not affect it's expansion.
Hence, Vsolid ΔVsolid =Vhollow ΔVhollow =γΔT
Therefore we can say both sphere will expand same, because material used for making both of them are same.