LTIMindtree interview question

Simple coding questions like reverse a string