Added solution to assignment 1 problem 4.