Pregunta de entrevista de Palantir Technologies

Some basic time complexity questions.