Solution to p24
Solution to p25, including lazy-seq variant