Maximal Network Rank

Implement solve for Maximal Network Rank. Return the required output for the provided arguments.

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

Maximal Network Rank

Implement `solve` for **Maximal Network Rank**. Return the required output for the provided arguments.