/**
 * Given two sets of cards, return the number of cards that are present in both sets.
 *
 * Example:
 * --------
 * cards1 = setOf('A', 'B', 'C', 'D', 'E')
 * cards2 = setOf('C', 'D', 'E', 'F', 'G')
 *
 * intersetingCardinality(cards1, cards2) -> 3
 */
fun intersetingCardinality(cards1: Set<Char>, cards2: Set<Char>): Int {

    val intersection = cards1.intersect(cards2)
    return intersection.size
}
/**
 * Given two sets of cards, return the number of cards that are present in both sets.
 *
 * Example:
 * --------
 * cards1 = setOf('A', 'B', 'C', 'D', 'E')
 * cards2 = setOf('C', 'D', 'E', 'F', 'G')
 *
 * intersetingCardinality(cards1, cards2) -> 3
 */
fun intersetingCardinality(cards1: Set<Char>, cards2: Set<Char>): Int {
/**
 * Given two sets of cards, return the number of cards that are present in both sets.
 *
 * Example:
 * --------
 * cards1 = setOf('A', 'B', 'C', 'D', 'E')
 * cards2 = setOf('C', 'D', 'E', 'F', 'G')
 *
 * intersetingCardinality(cards1, cards2) -> 3
 */
fun intersetingCardinality(cards1: Set<Char>, cards2: Set<Char>): Int {

    val intersection = cards1.intersect(cards2)
    return intersection.size
}