Pregunta de entrevista de LessThan3

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