IBM Interview Question

Basic coding questions. Similar to ones you see on leetcode