IBM interview question

Data structure and algorithm coding questions.