Problem 42 Python