removeLast

fun removeLast(): T?

Remove the last element of the list Time complexity O(n)

Return

T? the value of the removed element