Pregunta de entrevista de TriNet

Basic LC questions. Not too difficult.