Pregunta de entrevista de Compass

Round 2: Recursion - Back Tracking related question