Minor change
Add a solution to the problem 24