Create a function cloneArray that creates a shallow copy of an array using the spread operator.

Output: