Domanda di colloquio di Affirm

a leetcode-style task with some runtime constraints