Publicis Sapient Interview Question

rotate an array (basic leetcode question)