import importlib


def get_version_name(problem, version):
    """Read the version file and return its name.

    This function does NOT handle exceptions - the version and problem
    must be implemented when you call this function.

    Parameters:
        problem     The problem associated with the version
        version     The version whose name to return

    Return:
        The name of the specified version.
    """
    import_path = "solutions.{p}.{v}".format(p=problem, v=version)
    imported = importlib.import_module(import_path)
    return getattr(imported, "VERSION_NAME")