IBM interview question

Number series questions and coding