Pergunta de entrevista da empresa Google

A math-based DSA problem that tested logical reasoning and implementation skills.