Takes one element from the end of the array and returns it.
Returns the retrieved element. Returns void if there are no elements.
The retrieved element is removed from the array (the size of the array is reduced by one).