Google Interview Question

A card game solved using recursion and brute force