I interviewed at DoorDash for a Product Software Engineer position. The interview consisted of two rounds, a phone screen followed by an "onsite" loop consisting of 4 rounds: System Design/Domain Knowledge, Hiring manager chat, Code Crafting and Debugging.
-
Phone Screen
It was a LeetCode question - Design a File System - with a couple of minor variations, namely that I also needed to implement file/folder deletion, and the values were Strings instead of Integers. -
Virtual Onsite
It was a 5.5 hour interview via Zoom, consisting of the following rounds:a. System Design/Domain Knowledge (75 mins):
First I was asked about a past project - describe the architecture, a few questions about it, a complex feature that I implemented.
For the system design, I was asked to design a scheduler system that takes in a
cronexpression along with the details of a REST API call (URL, method, body) and calls that API at the intervals specified by thecronjob. I needed to make this system scalable - upto 100 million tasks per day - and the tasks could run at the granularity of 1 minute.I designed a system using a service, a Cassandra database, and a priority message queue that would queue up the jobs by next scheduled time. I was asked how I would scale it up, especially the database, and after some discussion with the interviewer, we decided that horizontal scaling would be best. There were some more discussions around the implementation and the flow of the request, but the interviewer seemed happy with my final solution.
b. Hiring Manager Chat:
After short introductions, I was asked a bunch of questions:
- Tell me about a time you received constructive criticism, how did you take it.
- Tell me about a time when you made a mistake, how did you fix it and what did you learn from it.
- Imagine you were the Director of DoorDash's operations and you needed to solve the issue of increasing wrong/missing orders/items. How would you go about it?
- Tell me about a recent personal goal and how you've made progress on it.
There were maybe a couple of other questions I can't remember.
I was given a 30 minute break after this interview.
c. Code Crafting Challenge
I was given a set of "APIs" I needed to call to create my own API that would return a specific response body. These were a
ConsumerService, aPaymentServiceand anAddressService. I needed to implement aBootstrapServicethat would "call" these APIs (in the given exercise just method calls, not actual REST API calls) and return a body containing a consumer ID, the default payment service, gift card credits remaining, and the user's name and address. This body was put together using pieces of responses from the given APIs. The input was a String userId. I needed to also ensure proper error handling - if the userId was invalid, unavailable, return an error, but if the other APIs returned an error the relevant fields should be blank. The code should run and show the correct response (or, ideally, the response should be tested with asserions.)I was able to do this but I tried to implement retry logic for retrieving the payment and address details where I made some silly mistakes, leading to me needing a little more time to figure out what was happening, and thus we couldn't test all the error cases as I ran out of time. I also didn't realize we needed assertions and used toString() methods to print out the responses instead, the interviewer told me I should've used assertions later.
d. Debugging
I was given a piece of code which put a bunch of dashers in a map, then randomly picked a dasher and then adjusted the map so that there were no "gaps" in the map and the next pick could be made correctly. There were a couple of major bugs in the code (map wasn't initialized, the map size was not being taken into account after removing the picked dasher), which I was able to figure out and fix. I was allowed to run the code multiple times to zero in on the issues. I am now realizing that maybe one of the fixes I could have suggested was using a List instead of a Map since the indexing/adjustment would have been easier with a list.
So that was it - it was a very different type of interview than the regular FAANG interviews, and considerably easier, so I guess the bar was higher and the few mistakes I made caused me to be rejected. The HM chat also I didn't shine as much as I could've. Hopefully this helps someone, as there is very little info out there on DoorDash's interview process, and though I kind of knew what to expect, I wasn't able to really practice anything (except for system design).


