Solve problem#25