IBM Interview Question

Two leetcode problems for the online Assessments