Pergunta de entrevista da empresa Microsoft

they asked two DSA question