Step-by-step explanation:
For the force to be conservative one, the condition is that the curl of the force must be zero. In other words, the work done by the force is path independent or does not depend upon the path.
Gravitational force is a central force and it does not depend on the path followed.