IBM Interview Question

write a code to print the series of numbers