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, null, false, true]) ➞ ["edabit", true]
FirstLast([undefined, 4, "6", "hello", null]) ➞ [undefined, null]return the result.