/**
 * A police officer wants to check if a list of criminals contains any arrested individuals.
 * Complete the function to iterate through the list of criminals, and for each criminal,
 * check if their name is in the list of arrested individuals.
 * If a criminal's name is found in the arrested list, return true.
 * If no criminal's name matches any arrested individual, return false.
 *
 * @param criminals A list of criminals' names.
 * @param arrested A list of arrested individuals' names.
 * @return true if any criminal's name matches an arrested individual, false otherwise.
 */
fun policeOfficerArrestCheck(criminals: List<String>, arrested: List<String>): Boolean {

    for (criminal in criminals) {
        if (criminal in arrested) {
            return true
        }
    }
    return false
}
/**
 * A police officer wants to check if a list of criminals contains any arrested individuals.
 * Complete the function to iterate through the list of criminals, and for each criminal,
 * check if their name is in the list of arrested individuals.
 * If a criminal's name is found in the arrested list, return true.
 * If no criminal's name matches any arrested individual, return false.
 *
 * @param criminals A list of criminals' names.
 * @param arrested A list of arrested individuals' names.
 * @return true if any criminal's name matches an arrested individual, false otherwise.
 */
fun policeOfficerArrestCheck(criminals: List<String>, arrested: List<String>): Boolean {
/**
 * A police officer wants to check if a list of criminals contains any arrested individuals.
 * Complete the function to iterate through the list of criminals, and for each criminal,
 * check if their name is in the list of arrested individuals.
 * If a criminal's name is found in the arrested list, return true.
 * If no criminal's name matches any arrested individual, return false.
 *
 * @param criminals A list of criminals' names.
 * @param arrested A list of arrested individuals' names.
 * @return true if any criminal's name matches an arrested individual, false otherwise.
 */
fun policeOfficerArrestCheck(criminals: List<String>, arrested: List<String>): Boolean {

    for (criminal in criminals) {
        if (criminal in arrested) {
            return true
        }
    }
    return false
}