Question d’entretien chez Huawei Technologies

How to reverse a given array?