Domanda di colloquio di Rogers Communications

A simple problem that could be solved using a for-loop.