Pergunta de entrevista da empresa Universal Instruments

A basic programming question regarding the use of loops, and modulo.