Domanda di colloquio di Huawei Technologies

One simple question about sorting arrays