Summary

Find the path that finds the maximum output

Demo

Input
Output (sample tree)
Pot of Gold