import importlib


def get_problem_name(problem):
    """Read the problem file and return its name.

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

    Parameters:
        problem     The problem whose name to return

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