# B. Following the String [Codeforces.com](https://codeforces.com/contest/1927/problem/B) Polycarp lost the string s of length n consisting of lowercase Latin letters, but he still has its trace. The trace of the string s is an array a of n integers, where ai is the number of such indices j (j