Leetcode Shortest Path String Escape Sql