Solve 11586 - Train Tracks.