Domanda di colloquio di Mars

How would you approach this specific problem?