Domanda di colloquio di DoorDash

Leetcode hard problem with lower quartile acceptance rate.