Cognizant Interview Question

Asked to print odd numbers from 1 to 30 in java