Question d’entretien chez Affirm

a leetcode-style task with some runtime constraints