Worked on generate_math_problem() function.