Longest path Problem

Gym - 102263E