Leetcode 3425. Longest Special Path | Hello Interview