Update 06.scala

Superb quality solutions. Best I could found. Just noticed some minor bug. And Thanks for your great job you did here.
Merge pull request #4 from GrayRRR/patch-1

Update 06.scala