結果 : two pointers algorithm in python