Solved #11 in scala
Solved #12 in scala