Array And Operations Codeforces Sheet 516