LessThan3 interview question

Design an algorithm to shift items in an array k spaces to the right