Update Test.scala

Updated the solutions..