Help me in solving MAPREARR problem

My issue

why is my answer wrong? it is matching perfectly with given solution also

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