Last

Given a [!scala]List[Int][/!][!java|python]recursive list[/!], return its last element. You can assume that the list is not empty.

Your solution should be linear in time.