Added a problem 2 solution that uses too much memory.
Added a lucky problem 3 solution.