Problem 2619 · Easy
Return the final element of an array, or -1 when the array is empty.
Open the interactive visualisation