Create a function that accepts an array and returns the last item in the array. The array can contain any of C#'s primitive data types.
GetLastItem([1, 2, 3]) ➞ 3
GetLastItem(["cat", "dog", "duck"]) ➞ "duck"
GetLastItem([true, false, true]) ➞ truereturn the result.