B. Olya and Game with Arrays | Codeforces Round 892 (Div. 2) | Full solution