Affirm Interview Question

Usual Leetcode ‘hard’ level coding problem