Microsoft Interview Question

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