Katkat

Design user communication functions

Akuna CapitalSoftware Engineer · Online Assessment

Last updated

This interview question evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer for Design user communication functions states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Question

Design a simple in-memory communication manager for users. Implement 2–3 functions to (

  1. connect two users so they can communicate, (
  2. disconnect two previously connected users, and (
  3. clear all existing user communications. Describe your data structures, provide code, and analyze time/space complexity.