Problem 15-123

solution Chap 15 # 123