/**
 * Given a list of crime rates and a list of suspects, this function finds the first
 * suspect who has a crime rate greater than 100. If such suspect is found, it returns
 * the suspect name; otherwise, it returns "No suspect found".
 *
 * @param crimeRates A list of crime rates (float values)
 * @param suspects A list of suspect names (strings)
 * @return The name of the first suspect who has a crime rate greater than 100, or
 * "No suspect found" if no such suspect is found
 */
fun findSuspect(crimeRates: List<Float>, suspects: List<String>): String {

    for ((index, rate) in crimeRates.withIndex()) {
        if (rate > 100) {
            return suspects[index]
        }
    }
    return "No suspect found"
}
/**
 * Given a list of crime rates and a list of suspects, this function finds the first
 * suspect who has a crime rate greater than 100. If such suspect is found, it returns
 * the suspect name; otherwise, it returns "No suspect found".
 *
 * @param crimeRates A list of crime rates (float values)
 * @param suspects A list of suspect names (strings)
 * @return The name of the first suspect who has a crime rate greater than 100, or
 * "No suspect found" if no such suspect is found
 */
fun findSuspect(crimeRates: List<Float>, suspects: List<String>): String {
/**
 * Given a list of crime rates and a list of suspects, this function finds the first
 * suspect who has a crime rate greater than 100. If such suspect is found, it returns
 * the suspect name; otherwise, it returns "No suspect found".
 *
 * @param crimeRates A list of crime rates (float values)
 * @param suspects A list of suspect names (strings)
 * @return The name of the first suspect who has a crime rate greater than 100, or
 * "No suspect found" if no such suspect is found
 */
fun findSuspect(crimeRates: List<Float>, suspects: List<String>): String {

    for ((index, rate) in crimeRates.withIndex()) {
        if (rate > 100) {
            return suspects[index]
        }
    }
    return "No suspect found"
}