A monotonic week
https://petr-mitrichev.blogspot.com/2020/04/a-monotonic-week.html
AtCoder Beginner G problems upsolving