Write first_last(items) that returns [first, last] of a non-empty list.
first_last(items)
[first, last]
first_last(['a', 'b', 'c']) → ['a', 'c']
first_last([7]) → [7, 7]
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.