Fine volumetric mesh close to the sphere enclosed within a cube and coarse mesh away from the sphere

I have a sphere which is enclosed within a cube and I want a fine volumetric mesh close to this sphere and as I move away from the sphere the mesh should coarsen.
Here is the snip from the GMSH and I would like to have a mesh similar to this. Is it possible using mmg?