Energy Exemplar interview question

declare a multi node tree using classes and perform dfs operations on it