const shuffle = function(nums, n) {
const first = nums.slice(0, n);
const second = nums.slice(n,nums.length);
i=1;
j=0;
while(i < nums.length) {
first.splice(i,0,second[j])
i+=2;
j++;
}
return first
};