Question d’entretien chez Huawei Technologies

they asked me about one array leetcode in c++