Problem with that question though is that you can no longer assume g is constant as it begins falling after it reaches max. height really. It should increase significantly as it falls closer to the surface of the planet. It works obviously if you assume that g does stay constant though.