Pergunta de entrevista da empresa Huawei Technologies

Matching brackets, pointers and references, DFS, and finding the missing number in an array