Java Basic Questions Leetcode Sql Window