Path With Given Sequence Leetcode Sql