Create problem_1004.cpp