IBM interview question

Technical part was more focused