add output of problem 4
solved problem 4 in go
solved problem 5 in go
solved problem 6 in go
solved problem 7 in go