IBM interview question

introduction