Add another solution to problem 47