Parity Interview Question

How to design distributed chat.