Iaroslav Tverdokhlib's submission of Generalized Arithmetic Progression Free Sequence | CodeChef