IBM interview question

Focuses on Data structures and algorithm