Domanda di colloquio di Google

Leetcode hard question, can't share because NDA