I am working on a function that accepts a positive integer n, e.g 5 should produce an array // [1,2,3,4,5] then each element should displace the next while the last element