added solution problem 42