Question d’entretien chez Embross

How would you solve this React issue