IBM interview question

basics