Domanda di colloquio di LessThan3

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