Check if bigString [ leftBigIdx ] is not equal to smallString [ leftSmallIdx ] or Check if bigString [ rightBigIdx ] is not equal to smallString [ rightSmallIdx ] than return false otherwise increment leftBigIdx and leftSmallIdx decrement rightBigIdx and rightSmallIdx
if ( bigString [ leftBigIdx ] != smallString [ leftSmallIdx ] or bigString [ rightBigIdx ] != smallString [ rightSmallIdx ] ) : NEW_LINE INDENT return False NEW_LINE DEDENT leftBigIdx += 1 NEW_LINE rightBigIdx -= 1 NEW_LINE leftSmallIdx += 1 NEW_LINE rightSmallIdx -= 1 NEW_LINE return True NEW_LINE