Added Scala solution to problem 6.
Added Scala solution to problem 1.