It's O's move. Who will win? Expand the tree like you did on the whiteboard, score the endings yourself, and back the values up — X takes the max, O takes the min.
Scoring: X wins = +1, O wins = −1, draw = 0. On X's turn the value is the max of the children (X wants the score high); on O's turn it's the min (O wants it low). That single rule, applied bottom-up, is the whole algorithm.