One needs to find the relationship between the change in GPE (=mgh) and kinetic energy (using the tangential speed v), and using the expression for centripetal acceleration and geometry, find the relationship between h and R when the force on the sphere is zero, i.e. just before the mass leaves the surface.