DeepSeek interview question

How to count all reverse pairs in a string