Tk20 Interview Question

Quite detailed recursive function question