Pergunta de entrevista da empresa ABN AMRO

Write down a code to produce an ordered sequence