Infosys Interview Question

Cursor life cycle, string reversal