Adacel Systems interview question

typical data structure questions and logics