Maximum Sum | Codeforces 1832B Solution | Educational Codeforces Round 148 | English