Pregunta de entrevista de Huawei Technologies

Build a tree in c++. Traverse using BFS and DFS