#25 solution