added solution for problem 1
edited problem 4 to show max