IBM Interview Question

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