Nagarro Interview Question

Data structures Reverse string and array