W3 Engineers Interview Question

mid level coding questions(leetcode pattern)