Question

Write a function that tells who won in a ox game (tic tac toe game)?

Login to Submit

Examples

Input: "ox.oxxo.."
Output: "o"

The board looks like

o x _
o x x
o _ _

If x wins then output should be x, if o wins output should be o and if it is draw output should be d