Interview Question Breakdowns
Learn the reasoning, implementation details, and common follow-ups behind each question.
Coding Interview: How Do You Solve Minimum Window Substring?
Derive a variable-length sliding window from the quadratic baseline, track required frequencies and satisfied character classes, and verify an executable TypeScript solution against duplicates, impossible inputs, and a brute-force oracle.
Product Manager Interview: How Would You Decide Whether to Enter a New Country Market?
Evaluate a new-country expansion through evidence of real demand, product fit, unit economics, and operational readiness, then control the investment with staged tests, precommitted gates, and exit criteria.
How to Answer “Tell Me About a Time You Faced an Ethical Dilemma”
Use STAR to explain how you identified competing duties, verified the facts, respected authority and confidentiality, chose the lower-harm path, and reported the outcome, cost, and reflection honestly.
Networking Interview: How Do You Troubleshoot SERVFAIL After a DNSSEC Rollover?
Trace evidence from the client and recursive resolver through the parent delegation and authoritative zone, use the CD and AD bits plus DS, DNSKEY, and RRSIG records to prove a DNSSEC chain failure, and recover safely.
Data Engineering Interview: How Do You Diagnose and Fix Spark Data Skew?
Prove Spark data skew with the UI, execution plan, and key distribution, then choose AQE, broadcast, targeted join salting, or two-stage aggregation and verify both correctness and performance.
Backend Interview: How Do You Evolve a Public API Without Breaking Clients?
Use a public Orders API field refactor, pagination change, and status expansion to distinguish source, wire, and semantic compatibility, then design version rollout, migration, deprecation, monitoring, and rollback.
Coding Interview: How Do You Solve Trapping Rain Water with Two Pointers?
Derive prefix arrays and a two-pointer solution from the per-column water formula, prove why the smaller known boundary is safe to advance, and implement and verify O(n) time with O(1) auxiliary space.
Frontend Interview: Explain Event Propagation and Implement Event Delegation
Derive event delegation from the capture, target, and bubble phases; implement a dynamic list with target, closest, and ownership checks; then handle propagation stops, non-bubbling events, Shadow DOM, and listener cleanup.
System Design Interview: Design Consistent Hashing with Virtual Nodes
Derive a hash ring from modulo remapping, then design consistent hashing with virtual nodes, weights, replicas, and versioned migration while identifying the hot-key and failure problems it cannot solve.
How to Answer “Tell Me About a Time You Handled a Dissatisfied Customer”
Use STAR to show how you de-escalated emotion, verified the facts, worked within your authority, offered executable options, closed the loop, and prevented a repeat without blaming the customer or inventing a perfect outcome.
Linux Interview: How Do Signals and Graceful Shutdown Work?
Design a deadline-bound Linux service shutdown that handles SIGTERM safely, stops new work, drains requests, manages child processes, and exits before SIGKILL.
SQL Interview: Calculate Exact Day-7 Cohort Retention
Build an exact Day-7 cohort-retention query in PostgreSQL, with calendar-day time zones, mature-cohort filtering, user-level deduplication, zero-return preservation, and production checks.
Product Manager Interview: How Would You Price a New Product?
Build a defensible launch-price hypothesis from the business objective, customer value, cost floor, alternatives, pricing metric, packaging, and paid evidence, then define how to test and revise it.
Coding Interview: How Do You Merge K Sorted Linked Lists?
Derive an O(N log k) merge from the frontier invariant, implement it with a size-k min-heap, prove correctness, and compare it with scanning, sequential merging, sorting, and divide-and-conquer.
Frontend Interview: Why Is a Huge z-index Still Behind Another Element?
Debug a dropdown that stays behind a header even with a huge z-index by separating stacking-context order, clipping, containing-block geometry, and the browser top layer, then choose the smallest durable fix.
System Design Interview: Design an E-commerce Payment Processing System
Derive a recoverable e-commerce payment system from payment intents, authorization and capture, idempotent retries, asynchronous webhooks, an immutable money ledger, refunds, and reconciliation.
Backend Interview: How Do You Prevent SSRF in a URL-Fetching Service?
Secure a URL preview service against SSRF with destination authorization, DNS and IP validation, connection pinning, redirect checks, egress isolation, bounded fetching, and adversarial tests.
Behavioral Interview: Tell Me About a Time You Said No to a Stakeholder
Use STAR to show how you tested the request, made consequences and decision rights explicit, proposed executable options, and supported the final decision without damaging trust.
Product Manager Interview: Design a Referral Program for a Grocery Delivery App
Start with incremental retained customers, define eligibility, incentives, and reward timing for both sides, then use a controlled experiment, unit economics, and abuse guardrails to decide whether to scale.
Linux Interview: Why Do df and du Show Different Disk Usage?
Diagnose a Linux filesystem that is full according to df but much smaller according to du. Learn how to align measurement scope, find deleted-open files and hidden data, separate reserved blocks from the real gap, reclaim space safely, and verify the recovery.
Backend Interview: Design a Secure Password Reset Flow
Design an email-link password reset flow that resists account enumeration, token theft, replay, email flooding, and concurrent submissions. Learn how opaque tokens, transactional consumption, session revocation, and failure-aware delivery fit together.
SQL Interview: Find Each User's Longest Consecutive Login Streak
Solve a PostgreSQL gaps-and-islands interview problem by fixing the business-day grain, deriving a stable group key with ROW_NUMBER, preserving tied longest streaks, and testing time-zone and duplicate-event edge cases.
Frontend Interview: How Do You Build an Accessible Modal Dialog?
Build an accessible modal dialog by defining its semantic, focus, keyboard, dismissal, and layering contracts before choosing a native or custom implementation, then verify the complete focus lifecycle.
System Design Interview: Design a URL Shortener
Design a durable, low-latency URL shortener by deriving code-space, storage, cache, redirect, idempotency, expiration, and abuse controls from explicit traffic assumptions.