Pregunta de entrevista de Meta

basic data structure and algorithm questions.