Pregunta de entrevista de Tesla

Typical LeetCode problems with follow-up questions (implement circular buffer, reverse words in a string).