Hi @Kumaresan_Vasagam,
In most cases, applying the ESR (Equality, Sort, Range) Rule to arrange the index keys helps to create a more efficient compound index.
Here is a MongoDB resource
https://www.mongodb.com/docs/manual/tutorial/equality-sort-range-rule/
Your index should be db.leaderboard.createIndex( { username: -1,score: 1 } )