Domanda di colloquio di DoorDash

A Dynamic Problem that requires returning the final sequence.