Sponsored
Use these hints if you're stuck. Try solving on your own first.
Create a matrix “rank” where rank[i][j] holds how highly friend ‘i' views ‘j’. This allows for O(1) comparisons between people
Solve with full IDE support and test cases