Microsoft interview question

Coding related question (python) which had moderate difficulty

Interview Answer

Anonymous

7 Sept 2021

Technical answer I luckily knew the answer