Shuffled the array without using a second helper array (utilized the swap function to swap two elements in the array).