Rotate an array by k position in place

e.g.
	{1, 2, 3, 4, 5, 6}
k = 2

Output:

{3, 4, 5, 6, 1, 2}