solve problem#25