Pregunta de entrevista de Ksolves

Puzzle logic questions based on sorting?