Domanda di colloquio di athenahealth

Q: Leetcode medium difficulty, not too difficult