Pergunta de entrevista da empresa Walmart Global Tech

Greedy algorithm problem, rotate an array by k places