Added problem 24 to prob43.py