Added Python solution to Problem 48.