In a deck of cards, each card has an integer written on it. Return true if and only if you can choose X >= 2 such that it is possible to split the entire deck into 1 or more groups of cards, where: Each group has exactly X cards. All the cards in each group have the same integer.
Given scores of N athletes, find their relative ranks andthe people withthe top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal"and"Bronze Medal".
Input: [5, 4, 3, 2, 1] Output: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"] Explanation: The firstthree athletes got the top three highest scores, so they got "Gold Medal", "Silver Medal"and"Bronze Medal". For the left two athletes, you just need to output their relative ranks according to their scores.