Pergunta de entrevista da empresa hims & hers

Solve a problem/task in a react component