for each sub tree call get sum find which has the greatest sum get sum: for each sub tree call get sum return this number plus the sum of sums