Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree

Implement solve for Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree. Return the required output for the provided arguments.

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

Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree

Implement `solve` for **Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree**. Return the required output for the provided arguments.