Generalized Arithmetic Progression Free Sequence | CodeChef