Pregunta de entrevista de TD

Low level system design and Dsa question From leetcode