manipulated the array using push/pop/shift/unshift, sort, reverse, and splice