Pregunta de entrevista de Uber

LeetCode medium - interviewer help w/ base cases