Better solutions (just found out about dropWhile)
I also found out about folding.
Added solution for problem 9.
Added solution for problem 10.