https://zeroplusfour.com/walking-the-approximate-longest-path-hackerrank-solution/
Walking the Approximate Longest Path – HackerRank Solution