leetcode scramble string dp