Keep it Beautiful | Codeforces 1841B Solution | Educational Codeforces Round 150 (Rated for Div. 2)