Create IsValid.cpp

initial commit