Added Scala solution to problem 6.
Added Scala solution to problem 1.
Merge pull request #7 from chessmasterhong/master

Scala solutions for problems 1 and 6.