Samyak Software interview question

Reverse string without using another variable