Sergey Kulik's submission of Generalized Arithmetic Progression Free Sequence | CodeChef