created a function that explodes a string, sorts the array alphabetically, removes the last item, adds the word 'and', pushes it back on the array, then implodes it into a new string