Pregunta de entrevista de Cisco

Writing code with stdout and simple sorting