結果 : two pointer problems in python