When the object moves upwards, the work done by gravity is negative (as the direction of gravitational force is towards the Earth’s center) and when the object come downwards, there is a positive work done. So, the total work down is zero in throughout the motion.
