Pregunta de entrevista de Ingenico

Create a pseudo algorithm based on some sorting requirement