Medium Python Problems Leetcode Sql