Kensa Heat Pumps interview question

Describe how a Heat pump works