bet365 Interview Question

Hinting at functional programming (recursion)