Leetcode 2467. Most Profitable Path in a Tree | Hello Interview