The interview problem
A support team can proactively review 200 tickets each day. Predict which newly opened tickets will need escalation within 48 hours and allocate that review capacity.
Original practice, not a reported company interview. All scenarios and worked numbers are illustrative. Interview date: not applicable. Sources retrieved September 30, 2026.
1. Scope and assumptions
Use a snapshot at ticket creation or a separately defined hourly scoring time. Escalation is an operational label affected by staff policy, not an objective measure of customer difficulty.
2. Worked approach
time-correct ticket snapshot → escalation score → capacity allocation → review → outcome log
Build time-stamped ticket snapshots, join only outcomes after each snapshot and wait for the full label window. Keep customer histories cut off at scoring time. Start with a queue-specific calibrated classifier using message text and permitted operational features.
Rank review candidates by expected avoidable harm, not probability alone, and reserve exploration capacity for poorly represented ticket types. Return evidence spans and missing-context indicators to reviewers. Log which tickets were reviewed because that intervention can prevent the escalation label and alter future training data.
3. Calculate the example
At a review cutoff of 200 tickets, suppose 120 would escalate without review: precision at capacity is 60%. If the full incoming cohort contains 300 future escalations, recall is 40%. These are predictive counts from an unmodified evaluation cohort. If review averts 25% of those 120 events, expected prevented escalations are 30, not 120. A four-minute review budget requires 800 minutes, or 13.33 staff-hours per day.
4. Failure cases and trade-offs
Including internal escalation notes leaks the target. Staff changing the definition of escalation causes label drift even if customer behavior is stable. Evaluating treated tickets as though review had no effect underestimates counterfactual risk.
A static daily list is easy to staff but becomes stale. Continuous reprioritization responds faster but creates churn; freeze accepted assignments and revise only unclaimed work. Rules can remain a useful baseline for explicit deadline breaches.
5. Validate the result
Backtest at actual snapshot times, evaluate precision/recall at the daily capacity and report queue-specific coverage. Use an approved randomized review policy or another defensible causal design to measure prevented escalation. Track reviewer disagreement and reassignment churn.
6. Interview follow-ups and self-review
How would you handle multiple scores for one ticket? What if all 200 slots are consumed early?
Reward timestamp discipline, capacity-aware metrics, intervention feedback and a realistic labor budget.
Sources and related practice
Technical reference: scikit-learn.org — Precision/recall definitions; ticket policy and calculations are original.
Exact publication/update date not established in this review. Retrieved September 30, 2026. This reference supports the named technical concept; the proposed workflow and examples are original, not a documented vendor implementation or interview report.
Continue with Route uncertain predictions to human experts; Data leakage: when a model knows too much.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.