[#18] Solution for P26.