Pregunta de entrevista de Affirm

Leetcode style problems easy/medium difficulty