Reorganize String Leetcode Problems Sql