Help me in solving DSAC55 problem

My issue

How to arrange this

Learning course: BCS304: Data structures and Applications
Problem Link: Pop Quiz - String reversal Practice Problem in BCS304: Data structures and Applications - CodeChef
How to arrange this program