Pergunta de entrevista da empresa Microsoft

DSA based question including competetive programming.