Pergunta de entrevista da empresa Superhuman

Solve an algorithmic problem in a live coding session.