Company: Databrick
Difficulty: medium
Codewriting Problem Description Imagine that you are monitoring changes to user ratings for an online platform. Each user on this platform has an overall rating (an integer between 1 and 2500) and a corresponding level. Rating levels are based the following rules: rating 1400 -> 1100 -> 1550 -> 2050 -> 1550 -> 950. The final rating value of 950 is in the range of the "beginner" level. Example 2: Input: initial = 1000, changes = [100, 200, 300, 400, -500] Output: "advanced" Explanation: The rating changes as follows: 1000 -> 1100 -> 1300 -> 1600 -> 2000 -> 1500. The final rating value of 1500 is in the range of the "advanced" level. Constraints 1 ≤ initial ≤ 2500 0 ≤ changes.length ≤ 10^5 -2500 ≤ changes[i] ≤ 2500