Microsoft interview question

One leetcode easy-medium and one leetcode medium-hard