Nagarro interview question

Reverse of a String