The work done is zero.
Work Step by Step
Work is done when a force acts on something that moves in the direction in which the force is acting (page 110). In both cases here, the direction of the gravitational force is perpendicular to the direction of motion. There is no force component in the direction of motion; the work done is zero.