Codeforces 408 E. Curious Array

NoSuchKey