Pergunta de entrevista da empresa Huawei Technologies

mainly c and c++ ans some general puzzles