add problem243.scala first version