Mistplay Interview Question

Q: How would you go about implementing this?