Two Sigma Interview Question

Design a Connect-7 game and its on hackrank