Fiverr Inc. interview question

Write a function the gets an integer n and returns an array with the numbers 1,..,n in a random order