Frage im Vorstellungsgespräch bei Infosys

Code an arithmetic series using any programming language I know.