Microsoft Interview Question

DSA based question including competetive programming.