/**
 * This function takes in two sets of friends and returns the set of common friends between them.
 *
 * @param user1Friends Set of friends of user1
 * @param user2Friends Set of friends of user2
 * @return Set of common friends between user1 and user2
 */
fun findCommonFriends(user1Friends: Set<String>, user2Friends: Set<String>): Set<String> {

    val commonFriends = mutableSetOf<String>()

    for (friend in user1Friends) {
        if (friend in user2Friends) {
            commonFriends.add(friend)
        }
    }

    return commonFriends
}
/**
 * This function takes in two sets of friends and returns the set of common friends between them.
 *
 * @param user1Friends Set of friends of user1
 * @param user2Friends Set of friends of user2
 * @return Set of common friends between user1 and user2
 */
fun findCommonFriends(user1Friends: Set<String>, user2Friends: Set<String>): Set<String> {
/**
 * This function takes in two sets of friends and returns the set of common friends between them.
 *
 * @param user1Friends Set of friends of user1
 * @param user2Friends Set of friends of user2
 * @return Set of common friends between user1 and user2
 */
fun findCommonFriends(user1Friends: Set<String>, user2Friends: Set<String>): Set<String> {

    val commonFriends = mutableSetOf<String>()

    for (friend in user1Friends) {
        if (friend in user2Friends) {
            commonFriends.add(friend)
        }
    }

    return commonFriends
}