Codeforces Round #954 (Div. 3) - E. Beautiful Array - Video Solution