ChowNow interview question

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