Removes brackets from one-liner function
Solved #9 in scala
Solved #10 in scala