Domanda di colloquio di Huawei Technologies

they asked me about one array leetcode in c++