Pregunta de entrevista de ChowNow

Recursive algorithm whiteboard problem, along with a javascript pair programming assignment