Thumbtack Interview Question

The first turn is a take-home assignment. The second one is going through your assignment.