Topological Sort - Longest Path With Different Adjacent Characters
Given the following code snippet implementing the optimal iterative DP solution for longest path with different adjacent characters, what is the returned value for n=3, edges=[[0,1],[1,2]], and s="abc"?
