Arithmetic Array

CodeForces - 1537A