Answer
Heat is exchanged. No work is done.
Work Step by Step
When water vapor condenses on a cold glass, the internal energy of the water vapor decreases. The decrease equals the mass of the vapor, multiplied by the heat of vaporization of the water vapor.
The energy that left the water vapor entered the glass, its contents, and the air, warming them up.
Heat is exchanged. No work is done.