Question d’entretien chez Amdocs

write a java program to print a series