Minimum Time Traversal

I couldn’t get how we are getting 120 in 3rd test case as output