Rotate Array

Given an array of integers and a non-negative integer k, return a new array rotated to the right by k positions.

Examples
Input: [[1,2,3,4,5,6,7],3]
Output: [5,6,7,1,2,3,4]
Hints

Rotate Array

Given an array of integers and a non-negative integer k, return a new array rotated to the right by k positions.