Leetcode Check If One String Is Immutable Means In Python