Create PAT 1046.cpp