Pregunta de entrevista de Tata Consultancy Services

one array question on rotate array k times