109: Fairly trivial problem + solution

Not really optimized, but it makes little difference.