Domanda di colloquio di Affirm

A hard OOD problem which can be found on leetcode