Exasol interview question

code challenge (POW)