there undirecte star graph consist n node label 1 n a star graph graph center node exactly n 1 edge connect center node nodeyou give 2D integer array edge edgesi ui vi indicate edge node ui vi Return center give star graph Example 1input edge 122342output 2explanation as show figure node 2 connect node 2 centerExample 2input edge 12511314output 1 Constraints3 n 105edgeslength n 1edgesilength 21 ui vi nui viThe give edge represent valid star graph