Block Interview Question

Given a card game with specified rules, design and implement an API for some given operations