Vrbo Interview Question

Given an array and a positive/negative number n, write a function to rotate the array n times.