def generate_rst_title(problem_name):
    """
    Helper function that generates a title for an rst page, containing
    the name of the problem.

    @param problem_name :: name of the problem

    @returns :: the title in rst
    """

    title = '=' * len(problem_name) + '\n'
    title += problem_name + '\n'
    title += '=' * len(problem_name) + '\n\n'

    return title