Help me in solving MAPREARR problem

My issue

tell me how to solve this problem

Learning course: C++ STL - Standard template library
Problem Link: Rearrange Code in C++ STL - Standard template library