add stream based solution for scala using scanLeft
add scala solution for problem 4 and verified answer
add verified answer to 5 and suboptimal scala solution
add verified solution to problem 6 and scala solution