Microsoft interview question

DSA based question including competetive programming.