Microsoft interview question

I suggest doing easy and medium leetcode problems.