Codechef Sql Problems Leetcode Python