You have a stack of cards with numbers on them. You need to take a certain number of cards from the bottom and place them on top of the stack, then show the new order of the cards from top to bottom.
Input: 5 3
1 2 3 4 5
Output: 3 4 5 1 2
Input: 6 2
1 2 1 2 1 2
Output: 1 2 1 2 1 2