Leetcode 3515. Shortest Path in a Weighted Tree | Hello Interview