I have an array of pair p[n] in C++
Let say p[i].first = i, p[i].second = j
I want to sort given pair in descending order of