Add solution to problem 52