Microsoft interview question

Multiple questions during the DSA rounds