Largest Color Value in a Directed Graph

Implement solve for Largest Color Value in a Directed Graph. Return the required output for the provided arguments.

Examples
Input: ["abaca",[[0,1],[0,2],[2,3],[3,4]]]
Output: 3
Hints

Largest Color Value in a Directed Graph

Implement `solve` for **Largest Color Value in a Directed Graph**. Return the required output for the provided arguments.