Emerald Cloud Lab Interview Question

- Leet code easy to medium.