Python List Common Elements Leetcode Sql Problems 500