Coffee Meets Bagel interview question

Write a function to check Tic Tac Toe checker via CoderPad