NVIDIA Interview Question

you have a given array, write a function to return the array shuffled.