Problem 12-100

solution 12-100