Nextdoor Interview Question

array in string and re-arrange dfs problem