Question d’entretien chez Ramsey Solutions

How would you solve this problem?