Flatiron Health Interview Question

Design this system.