Pergunta de entrevista da empresa Microsoft

Typical DSA questions, medium difficulty