Domanda di colloquio di Embross

How would you solve this React issue