McKinsey & Company Interview Question

Easiest level hackkerrank array rotation question