E Minimum Array ( Codeforces Round #555 (Div. 3) )

NoSuchKey