Question d’entretien chez Palantir Technologies

Time and space complexity of sample code