Cemtics interview question

basic coding questions reverse string , lC-303