There is bug in your solution

4
5
11 12 13 14
1 2 3 4 5
2, 4, 6, 8, 9, END

Please explain this