Ridgeline interview question

implement a 3x3 captcha validator in reactjs.