Ridgeline interview question

Implement a 3X3 captcha where you can only submit the invalid elements