Pergunta de entrevista da empresa Palantir Technologies

Some basic time complexity questions.