Longest path in a Manhattan-like grid

Sign in to test your solution.