Solve Problem#24