Meta·Software Engineer·Onsite - System Design / Architecture
- Design the full validation and error-handling strategy for an API endpoint that computes the top-K most frequent values from a user-submitted array. Cover input validation, auth, rate limiting, idempotency, error codes, partial failures, timeouts, retries, observability, and graceful degradation for bad or oversized payloads. Include example API contracts and error response shapes.
“This question sprawled in every direction and I kept second-guessing whether to go broad or deep first.”