added solution to prob 5 in scala and python