To fetch the top (most recently added) element of a stack, removing that element from the stack in the process.