Pergunta de entrevista da empresa TikTok

Build react component, algorithm solving