Add solution to problem 41. It takes me some time to figure out there is a bug in scala 2.11.0 which hackerrank runs. That's why I cannot get this solution passing hackerrank and throws run time error. See https://issues.scala-lang.org/browse/SI-7372 for this bug in detail. I should ask hackerrank to update their Scala version.
Add solution to problem 41. It takes me some time to figure out there is a bug
in scala 2.11.0 which hackerrank runs. That's why I cannot get this solution
passing hackerrank and throws run time error. See
https://issues.scala-lang.org/browse/SI-7372 for this bug in detail. I should
ask hackerrank to update their Scala version.

advancedxy/hackerrank,advancedxy/hackerrank,advancedxy/hackerrank