Pergunta de entrevista da empresa MyTyles

Javascript and React problem solving.