GreedyGame interview question

System design for Backup chats when offline