Leetcode 3615. Longest Palindromic Path in Graph | Hello Interview