def findMax(E: list[int], n: int) -> int:
    """Algorithm 1.3 FindMax
    Input: 𝐸, an array of numbers, defined for indexes 0,…,𝑛−1; 𝑛≥1, the number of entries.
    Output: Return max⁡, the largest entry in 𝐸.

    Parameters
    ----------
    E : list[int]
        Array of numbers.
    n : int
        Size of array E.

    Returns
    -------
    int
        Maximum number in E.
    """
    max = E[0]
    for index in range(1, n):
        if max < E[index]:
            max = E[index]
    return max