you give undirected graph you give integer n number node graph array edge edgesi ui vi indicate undirected edge ui via connected trio set nod edge pair themthe degree connect trio number edge endpoint trio notReturn minimum degree connect trio graph 1 graph connect trio Example 1input n 6 edge 121332415236output 3explanation there exactly trio 123 the edge form degree bolde figure aboveexample 2input n 7 edge 1341432556677526output 0explanation there exactly trios1 143 degree 02 256 degree 23 567 degree 2 Constraints2 n 400edgesilength 21 edgeslength n n1 21 ui vi nui vithere repeat edge