Graph traversing puzzle. So let's just go through all possible permutations. That's why we have computers, right?