problem_89 and mod_exp