def _allPixelsAreColor(strand, color):
    pixelCount = strand.n
    for i in range(pixelCount):
        if (strand[i] != color):
            return False
    return True
def _allPixelsAreColor(strand, color):
    pixelCount = strand.n
    for i in range(pixelCount):
        if (strand[i] != color):
            return False
    return True