Implementation Using Array And String In Cpp