Create PAT 1017.cpp