Added sln for qn 3 part b