I am trying to swap the largest element in an array with the last element in an array.
So far I have been able to place the largest element into the last element slot but