Pergunta de entrevista da empresa Amazon

How to print every 3rd number from 1 - 30