The Fine Print
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
Return the transaction `records` that pass a surveillance analyst's `query`. The `query` is a predicate tree whose leaves compare one field to a value with `>`, `>=`, `<`, `<=`, `==`, or `!=`, and whose `and`, `or`, and `not` nodes nest those leaves to any depth.
Summary
Risk rules nest deep. Decide which transactions clear them.
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