I\'m supposed to write a function that finds the largest sum on any non-empty path in the tree without structures. The parameters are an int parent array where parent[i] = j