Microsoft interview question

Easy/medium leetcode problems