Replace the string The quick brown fox jumps over the lazy dog with the string The1 quick2 brown3 fox4 jumps5 over6 the7 lazy8 dog9.
Javascript Algorithm Interview Questions
Write a function that takes an array of integers and returns that array rotated by N positions.
For example, if N=2, given the input array [1, 2, 3, 4, 5, 6] the function should return [5, 6, 1, 2, 3, 4]