Pergunta de entrevista da empresa Geotab

Design a chat application. Fix the bugs in existing code.