Add problem 1001 solution.