IBM interview question

Coding based and some situational questions