Domanda di colloquio di Ramsey Solutions

How would you solve this problem?