Google Interview Question

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