Question d’entretien chez Huawei Technologies

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