Write a function that retrieves the last n elements from a list.
last([1, 2, 3, 4, 5], 1) ➞ [5]
last([4, 3, 9, 9, 7, 6], 3) ➞ [9, 7, 6]
last([1, 2, 3, 4, 5], 7) ➞ "invalid"
last([1, 2, 3, 4, 5], 0) ➞ []
"invalid" if n exceeds the length of the list.n == 0.