IBM interview question

Coding challenge consisted of 3 questions, mainly on data structures and algorithms