Pregunta de entrevista de Affirm

Leetcode based questions from mid/hard