Affirm Interview Question

One of the technical rounds was a classic Leetcode-style question