IBM interview question

basic programming questions