Problem1 completed
Problem2 completed
Solution for 4