Leetcode Minimum Index Sum Of Two Lists Python 3