question: reversing a string
answer:
only one loop require inner one why you are using that for loop at line no 12 ?? remove this loop
Modified code