CodeForces C. Maximal Intersection

NoSuchKey