Whitespace fix in 17.
Reimplemented 17 without working on strings.
foldr in practice.