def read_file(filepath: str) -> str:
    """
    Reads a file and returns its contents.

    Args:
        filepath (str): location of file

    Returns:
        str: file contents
    """
    content = None
    with open(filepath, "r") as f:
        content = f.read()
    return content