Pregunta de entrevista de WeWork

simple leetcode question, system design questions.