Problem library

Rating Tier

Easy
conditionals

CodeArena shows a tier badge next to every rating:

RatingTier
below 1000Bronze
1000 to 1399Silver
1400 to 1799Gold
1800 to 2199Platinum
2200 and aboveDiamond

Given a list of ratings, return the tier for each one, in the same order.

Examples

Input: ratings = [950,1000,1850]
Output: ["Bronze","Silver","Platinum"]
Input: ratings = [2200]
Output: ["Diamond"]