Codeforces - Greg and Array

NoSuchKey