Microsoft Interview Question

They asked the equivalent leet code easy/medium questions.