Playtech Interview Question

How to solve a specific recursive problem I.e. come up with an algorithm to solve it