Pregunta de entrevista de Marqeta

Leetcode style coding question, on pair programmed on hackerrank