Count Possible Winners (All About Rewards :)
SDE II
Amazon Shopping is running a reward collection event for its customers.
There are n customers and the i-th customer has collected initialRewards[i] points so far.
One final tournament is to take place where:
Given an integer array initialRewards of length n, representing the initial reward points of the customers before the final tournament:
Find the number of customers i (1 ≤ i ≤ n) such that, if the i-th customer wins the final tournament, they would have the highest total points.
Note -
The total points = initialRewards[i] + n (if they win). Other customers also get points in the tournament depending on their ranks (from n - 1 to 1). You must check if the i-th customer, upon winning, ends up with the highest total score, regardless of how others place.
1Example 1
2Example 2
3Example 3

Constraints
Limits and guarantees your solution can rely on.
1 ≤ n ≤ 10^50 ≤ initialRewards[i] ≤ 10^5- Complete constraints added on 06-18-2025