Smaller Numbers after Self1

I have applied merge sort only while solving the question, but still 2 test cases show TLE. What is wrong with my code?
Here is the link to my code-

Test your code here https://leetcode.com/problems/count-of-smaller-numbers-after-self/ and check once.
Check if it works there.
If it does not work then please add some comments to your code and then share its link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.