Write a sorting algorithm that would swap first and last indexes of the array, then the second and the one before last and so on. So, basically, I had to mirror the array. The requirement was that I could not create a second array where to put every number in the new and right order. I had to manipulate the original array itself.