Amazon Interview Question

How to print every 3rd number from 1 - 30