IBM Interview Question

2 easy to easy-medium leetcode style questions