DoorDash interview question

HackerRank Questions - Two within an hour