Create problem418.cpp