• + 1 comment

    JavaScript:

        // Write your code here
        var i=1;
        while(i<=d){
            arr.push(arr.shift());
            i++;
        }
        return arr;
    }