Domanda di colloquio di Google

Leetcoding as usual. Nothing too difficult.