Postmates interview question

Coding challenge: four algorithm questions. Follow up 1:1 - one medium algorithm question.