Amdocs Interview Question

write a java program to print a series