Add problem 1004 solution.
Add problem 1003 solution.