Vedanta interview question

how does carnot cycle work