Pregunta de entrevista de Microsoft

LeetCode-style problems in both cases.