/**
 * Given two sets of criminals, find the common criminals.
 *
 * @param criminalList1 Set of criminals caught by Officer A
 * @param criminalList2 Set of criminals caught by Officer B
 * @return Set of criminals caught by both officers
 *
 * Example:
 * val criminalList1 = setOf("John Doe", "Alice Smith", "Mike Johnson")
 * val criminalList2 = setOf("Alice Smith", "Jack Williams", "Mike Johnson")
 * getCommonCriminals(criminalList1, criminalList2) // Output: ["Alice Smith", "Mike Johnson"]
 */
fun getCommonCriminals(criminalList1: Set<String>, criminalList2: Set<String>): Set<String> {

    return criminalList1.intersect(criminalList2)  // Using set intersection function "intersect"
}
/**
 * Given two sets of criminals, find the common criminals.
 *
 * @param criminalList1 Set of criminals caught by Officer A
 * @param criminalList2 Set of criminals caught by Officer B
 * @return Set of criminals caught by both officers
 *
 * Example:
 * val criminalList1 = setOf("John Doe", "Alice Smith", "Mike Johnson")
 * val criminalList2 = setOf("Alice Smith", "Jack Williams", "Mike Johnson")
 * getCommonCriminals(criminalList1, criminalList2) // Output: ["Alice Smith", "Mike Johnson"]
 */
fun getCommonCriminals(criminalList1: Set<String>, criminalList2: Set<String>): Set<String> {
/**
 * Given two sets of criminals, find the common criminals.
 *
 * @param criminalList1 Set of criminals caught by Officer A
 * @param criminalList2 Set of criminals caught by Officer B
 * @return Set of criminals caught by both officers
 *
 * Example:
 * val criminalList1 = setOf("John Doe", "Alice Smith", "Mike Johnson")
 * val criminalList2 = setOf("Alice Smith", "Jack Williams", "Mike Johnson")
 * getCommonCriminals(criminalList1, criminalList2) // Output: ["Alice Smith", "Mike Johnson"]
 */
fun getCommonCriminals(criminalList1: Set<String>, criminalList2: Set<String>): Set<String> {

    return criminalList1.intersect(criminalList2)  // Using set intersection function "intersect"
}