Microsoft interview question

NDA - but practice leetcode