problem 001 solution