Domanda di colloquio di Google

DSA question, almost certainly on Leetcode