Pergunta de entrevista da empresa DoorDash

It was a run of the mill programming question.