def load_file(filename: str) -> list:
    """Load the submarine commands from  a file

    :param filename: Location of the input file
    :return: List of commands
    """
    with open(filename) as f:
        commands = f.readlines()
    commands = [c.split() for c in commands]
    return commands