Pregunta de entrevista de Lexmark International

A difficult sorting problem