Westwing Group SE interview question

How do you know if this code is good (code smells)?