Lucid Software Interview Question

Implement the Pente game (brute-force)