Bloomberg Interview Question

Implement recursion function, why bloomberg