Pergunta de entrevista da empresa Huawei Technologies

One simple question about sorting arrays