Microsoft Interview Question

One leetcode easy-medium and one leetcode medium-hard