Right of Way
A medium Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid
Interview Prompt
Your edge proxy screens inbound traffic against a firewall table where each rule pairs a CIDR block with either `allow` or `block`. A source IP's verdict comes from the most specific rule whose range contains it. Return each request's verdict in arrival order.
Summary
Every packet asks the same question of the firewall. Answer it the way the table intends.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision