Affirm Interview Question

Leetcode style problems easy/medium difficulty