Sort game problem

not being able to get sol

Hi,

You first sort all the pairs as per given in question using your own comparator function. After that print only those who has salary more than x.