added one more solution problem 1