Sponsored
Use these hints if you're stuck. Try solving on your own first.
Being friends is bidirectional. If you accept someone's adding friend request, both you and the other person will have one more friend.
Solve with full IDE support and test cases