Leetcode 3486. Longest Special Path II | Hello Interview