Write a function to reverse a string without using global variable?

Write a function to reverse a string without using global variable?

From the BUET MSC (ICT) May 2019 – Written exam, question 16 of 20.

More from this paper