input: def min_max(arr: List[int]) -> List[int]:
      """
      Returns an array containing the greatest and smallest values from the given array.
  
      >>> min_max([3, 4, 2, 8, 15, 6])
      [2, 15]
      """
output:     return [min(arr), max(arr)]