Pattern Program In Leetcode Sql