Zhang Yide's submission of Generalized Arithmetic Progression Free Sequence | CodeChef