test 1 failed: input: 18 U 3 R 1 R 4 L 3 R 5 R 2 U 5 R 3 D 4 R 4 U 4 L 3 D 5 R 1 L 5 D 1 L 3 R 5 expected:1 got:14