Guidewire Interview Question

Technocal question on codility. Basically is regarding recussive