Create a function that takes an array of values and returns the first and last values in a new array.
firstLast([5, 10, 15, 20, 25]) ➞ [5, 25]
firstLast(["edabit", 13, false, true]) ➞ ["edabit", true]
firstLast(["hello", "edabit", "dot", "com"]) ➞ ["hello", "com"]return the result.