Why this code shows Tle

I use merge sort to calculate inversion count that is among the best technique to solve it but it give Tle…please tell me the reason

@mayank10
Make temp[] array global. Declare it outside the merge() function.

Hey @mayank10
How can I help you ?