Help me in solving SESO26 problem

My issue

shows wrong answer even though my answer matches the solution???

Learning course: Searching and Sorting Algorithms
Problem Link: https://www.codechef.com/learn/course/searching-sorting/SORTSEARCH7/problems/SESO26

@sounder_rustle
this will be the correct solution

MERGE-SORT(A, left, right)
if left < right
middle = (left + right) / 2
MERGE-SORT(A, left, middle)
MERGE-SORT(A, middle + 1, right)
MERGE(A, left, middle, right)