Ma Leetcode Solution Javascript With Statement Mysql