IBM interview question

About Data structure and algorithm