Pregunta de entrevista de Microsoft

Algorithm question involving multiple Sorts