Pregunta de entrevista de Tata Consultancy Services

In coding section, I got k- rotation array question