(B) Find MEo.
The mechanical energy of the rock at any height h is given by,

where r = h + R.

Since the rock is dropped from rest its initial velocity is zero,

The energy is negative because the rock is bound to the Earth and gravitational potential energy is defined in such a way that it is zero at infinity.