Python List Common Elements Leetcode Problem 125 Grams