例如,給定列表 ["one", "two", "one"],算法應該返回 True,而給定 [" one", "two", "three"] 它應該返回 False。
["one", "two", "one"]
True
[" one", "two", "three"]
False