Place all the numbers in ascending order making restricted moves.