HackerRank XML2 - Find the Maximum Depth in python problem solution - TheCScience