Pregunta de entrevista de Tectoro

To implement the functions in both react and javascript