Help me in solving CPDSAPY70 problem

My issue

rearrage the code

Learning course: 214CSE2302: Getting started with Data structures
Problem Link: Rearrange code Practice Problem in 214CSE2302: Getting started with Data structures - CodeChef