Sort game (what is error , giving wrong ans)

@vikashkmr519,
You will get TLE as well as Wrong answer for this. TLE because of O(n^2) sort algo
You need to print the max salary first irrespective of the name. If the salary is equal only then compare the names.
Your code is not passing the Sample test case:
79
4
Eve 78
Bob 99
Suzy 86
Alice 86
Correct output:
Bob 99
Alice 86
Suzy 86
Your output:
Bob 99
Suzy 86
Alice 86

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.