we want split group n people label 1 n group size each person dislike people groupgiven integ n array dislikes dislikesi ai bi indicate person label ai like person label bi return true possible split group way Example 1input n 4 dislike 121324output trueexplanation group1 14 group2 23example 2input n 3 dislike 121323output falseexample 3input n 5 dislike 1223344515output false Constraints1 n 20000 dislikeslength 104dislikesilength 21 dislikesij nai biAll pair dislike unique