Create COJ-1494.cpp