Help me in solving MAPREARR problem

My issue

I have given the correct answer according to the actual solution but is is saying invalid

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