Parity interview question

How to design distributed chat.