IBM interview question

aptitude