':type s: str
:rtype: List[str]'

def generatePossibleNextMoves(self, s):

    res = []
    (i, n) = (0, (len(s) - 1))
    while (i < n):
        if (s[i] == '+'):
            while ((i < n) and (s[(i + 1)] == '+')):
                res.append(((s[:i] + '--') + s[(i + 2):]))
                i += 1
        i += 1
    return res
