Can anyone explain Advance version of exercise 1 ?

to list all the possible routes that start from Panama and visit each of the other ports exactly once, solution using recursion.