Create problem_043.py

this is too slow. suggest improvements