Question d’entretien chez Navan

Hard Leetcode Problem. Not really sure which one.