The interview problem

Practice prompt

A parking service receives gate counts and per-space sensors that disagree. Design availability reporting without inventing free spaces.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume a fixed space inventory and timestamped sensor events with sequence numbers. Keep observed occupancy, sensor health and confidence separate. Deduplicate gate events and use per-space observations where fresh; reconcile aggregate count against physical capacity and manual audits. Mark stale or contradictory spaces unknown. Reservations consume separately tracked availability and must not overwrite physical occupancy evidence.

2. Trace the design or derivation

Ingest sequenced observations
  → assess health
  → reconcile evidence
  → deduct holds
  → report bounded availability

Attach an as-of time and coverage to the public estimate. The operator dashboard should show which sensors cause uncertainty and the age of the last reconciliation. A manual correction is a versioned observation with an author and expiry, not a permanent override that masks future contradictory evidence.

3. Calculate the example

A garage has 100 spaces, 70 confirmed occupied, 20 confirmed free and 10 unknown. Reporting 30 free assumes every unknown is free. A conservative display reports 20 confirmed free, with reservation holds deducted according to the declared policy.

4. Failure cases and trade-offs

Missed exits accumulate count drift, and one car can trigger multiple gate sensors. Forcing totals to match capacity conceals faults. Conservative estimates reduce overpromising but may underutilize spaces; periodic audits and sensor repair improve evidence rather than merely relaxing thresholds.

5. Validation, follow-ups and self-review

Inject duplicate entries, missing exits and sensor outages. Follow-up: how should an occupied reserved space be handled? Self-review: separate physical state, booking state and unknown evidence.

Sources and related practice

Technical reference: opentelemetry.io — Structured event representation only; parking reconciliation policy is original.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Design an inventory reservation system; Synchronize configuration across intermittently connected devices.

Continue your preparation

Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.