Question d’entretien chez AutoNation

Very hard question from Leetcode.