Cordis Technology interview question

basic programming questions. like reverse string