結果 : how to use two pointer approach in python