Знаменитость Проблема 2 GFG 7-18-21

Input:
N = 2
M[][] = {{0 1},
         {1 0}}
Output: -1
Explanation: The two people at the party both
know each other. None of them is a celebrity.
Funny Name