Bloomberg interview question

Implement recursion function, why bloomberg