This problem is not for the faint hearted! It requires logical
thinking and perseverance. Learners who enjoyed this problem may
like to try
Shunting Puzzle .
Key questions
How could you start?
How will you remember what you have tried?
Remember that the engine can push and pull.
Perhaps using some counters will help?