codeforces round 506 div3 C. Maximal Intersection

NoSuchKey