Question d’entretien chez Infosys

Code an arithmetic series using any programming language I know.