Pregunta de entrevista de BigFix

Leetcode technical question that was pretty standard.