Domanda di colloquio di Palantir Technologies

Some basic time complexity questions.