Create Chapter3Solution.scala

solutions of chapter 3