Lightweight Sql Problem Leetcode