Added solution to problem 5
Added solution to problem 6