Add problem 6 solution.
Fix typo.