IBM Interview Question

0 multiple choice and 2 coding questions. One of the coding questions got me