Leetcode Array Two Sum Problem In Python Iteration Process