IBM interview question

Leetcode easy and meduim problems