Problem 016 solution.
Problem 017 solution.