Write a method named lastInList that accepts a single List<?> of items and returns the last element as an
Object.
The list will contain at least one element.
Don't overthink this!
The solution is a single line of code.
You're challenge is to write tests for this problem described above.
Stuck? You may find these lessons helpful: