Java Basic Questions Leetcode Sql Window Functions