Each part of the cycle is reversible

 

Drag the slider to reverse the isothermal expansion.

The reversal can be started at any point on the expansion.