Create p507.cpp

SGU 507 CPP