2 functions that both receive an array of strings: one returns the first string in the sorted array, the other returns the last