TCS interview question

Program for Reverse string without using inbuild function