Python List Common Elements Leetcode Problem