Design Leetcode Problems Sqlite Python