Implement a match-3 board resolver | TikTok Interview Question