Google Interview Question

A recursive problem. It takes me sometime to explain my coding.