Sort Colors Leetcode Solution Javascript Substring Function In Mysql