Make It Increasing Codeforces Solution