Update pattern_matching_problem.py