Pergunta de entrevista da empresa Polynomial.Ai

some long but easy dsa problem; then the full stack assignment;