Enigma Camp interview question

Explain how your codes work