結果 : three pointer approach python