HCLTech interview question

Reverse a string without using Python slicing.