You are given a non-empty list lst.
Return a tuple of exactly two elements (first, last), where first is the first element of the list and last is the last element of the list.
If the list has only one element, first and last are the same value, so the pair is (x, x).
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[1, 2, 3]
Returns
(1, 3)