IBM interview question

Two Coding questions, followed by a recorded video interview