def get_file_contents(filename: str) -> str:
    """ Receive a filename and return its contents """

    with open(filename, "rt", encoding="utf-8") as infile:
        text = infile.read().rstrip()

    return text