Pergunta de entrevista da empresa Code95

which data structure is better for chat app?