Question d’entretien chez MindCloud

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