Pregunta de entrevista de SentinelOne

Time complexity discussions on the above problems