Pregunta de entrevista de Cohesity

Two coding questions in first technical round.