PROS interview question

A recursion problem