Evolv AI interview question

X/O game logic very simple