Domanda di colloquio di Unity

How would you solve this problem?