Question related to matrix problem in C

I need your help in solving this task in the C programming language because I don’t have any idea how to solve this, and I can’t find anything what can help me.

There are n people at the reception (n≤100).

The matrix A nxn is given so that a (i)(j) = 1 if person i knows person j, otherwise a (i)(j) = 0.

Write a function that determines the ordinal number of a person:

  • who knows the most people;
  • known to most people.

Best regards!