NeuraFlash interview question

Whiteboard programming question, recursion focused