Pregunta de entrevista de Microsoft

Coding questions (easy/medium leetcode); one for each round