To reverse the content of the array