Addes solution for Problem 4
Addes solution for Problem 5