/**
 * This function checks if any of the given criminals are present within any of the given areas.
 *
 * @param areas A list of lists representing different areas where criminals can be found. Each inner list contains the names of criminals present in that area.
 * @param criminals A list of criminals to check for their presence in any of the areas.
 * @return A boolean value indicating whether any of the criminals are present in any of the areas.
 */
fun isCriminalInArea(areas: List<List<String>>, criminals: List<String>): Boolean {

    // Iterate over each area
    for (area in areas) {
        // Iterate over each criminal
        for (criminal in criminals) {
            // Check if the criminal is present in the current area
            if (criminal in area) {
                return true  // Criminal found, so return true
            }
        }
    }
    return false  // No criminals found in any of the areas
}
/**
 * This function checks if any of the given criminals are present within any of the given areas.
 *
 * @param areas A list of lists representing different areas where criminals can be found. Each inner list contains the names of criminals present in that area.
 * @param criminals A list of criminals to check for their presence in any of the areas.
 * @return A boolean value indicating whether any of the criminals are present in any of the areas.
 */
fun isCriminalInArea(areas: List<List<String>>, criminals: List<String>): Boolean {
/**
 * This function checks if any of the given criminals are present within any of the given areas.
 *
 * @param areas A list of lists representing different areas where criminals can be found. Each inner list contains the names of criminals present in that area.
 * @param criminals A list of criminals to check for their presence in any of the areas.
 * @return A boolean value indicating whether any of the criminals are present in any of the areas.
 */
fun isCriminalInArea(areas: List<List<String>>, criminals: List<String>): Boolean {

    // Iterate over each area
    for (area in areas) {
        // Iterate over each criminal
        for (criminal in criminals) {
            // Check if the criminal is present in the current area
            if (criminal in area) {
                return true  // Criminal found, so return true
            }
        }
    }
    return false  // No criminals found in any of the areas
}