DFS,StringBuilder to save space,AC