Domanda di colloquio di xAI

They asked me the Text Editor LeetCode question with Undo/Redo