def min_max(lst):
    """
    Function that returns both the minimum and maximum number of the given list/array.
    :param lst: an array of integers.
    :return: returns a list with the smallest then largest numbers in the array.
    """
    return [min(lst), max(lst)]