Work done by the gas is W=∫PdV, positive for expansion and negative for compression. From the diagram, A=(2V0,P0),B=(3V0,P0),C=(3V0,2P0) and D=(V0,2P0).
Along A→B,WAB=P0(3V0−2V0)=P0V0. Along B→C the volume is constant, so WBC=0.
Along C→D,WCD=2P0(V0−3V0)=−4P0V0. Adding the three legs gives W=−3P0V0, option 3.