Domanda di colloquio di MindCloud

How would you deal with this code challenge? (hard code challenge)