Pregunta de entrevista de ABN AMRO

Write down a code to produce an ordered sequence