Pergunta de entrevista da empresa DataArt

how would you solve the problem with the optimization React application?