Google Interview Question

- A recursive problem