Create validArray.cpp