Pregunta de entrevista de Huawei Technologies

One simple question about sorting arrays