IBM interview question

two coding questions,about the projects we mentioned, our introduction