':type s: str
:rtype: bool'

def canWin(self, s):

    (i, n) = (0, (len(s) - 1))
    is_win = False
    while ((not is_win) and (i < n)):
        if (s[i] == '+'):
            while ((not is_win) and (i < n) and (s[(i + 1)] == '+')):
                is_win = (not self.canWin(((s[:i] + '--') + s[(i + 2):])))
                i += 1
        i += 1
    return is_win
