IBM interview question

WorkPlace Assignment