/**
 * This function takes in a list of suspects, a target suspect to find, and a search radius.
 * It iterates through the suspects list using a loop control statement and slices the list based on the search radius.
 * It returns a boolean value indicating whether the target suspect was found within the specified search radius.
 */
fun suspectSearch(suspects: List<String>, targetSuspect: String, searchRadius: Int): Boolean {

    for ((index, suspect) in suspects.withIndex()) {
        val searchRange = suspects.slice((index - searchRadius)..(index + searchRadius))
        
        if (targetSuspect in searchRange) {
            return true
        }
    }
    
    return false
}
/**
 * This function takes in a list of suspects, a target suspect to find, and a search radius.
 * It iterates through the suspects list using a loop control statement and slices the list based on the search radius.
 * It returns a boolean value indicating whether the target suspect was found within the specified search radius.
 */
fun suspectSearch(suspects: List<String>, targetSuspect: String, searchRadius: Int): Boolean {
/**
 * This function takes in a list of suspects, a target suspect to find, and a search radius.
 * It iterates through the suspects list using a loop control statement and slices the list based on the search radius.
 * It returns a boolean value indicating whether the target suspect was found within the specified search radius.
 */
fun suspectSearch(suspects: List<String>, targetSuspect: String, searchRadius: Int): Boolean {

    for ((index, suspect) in suspects.withIndex()) {
        val searchRange = suspects.slice((index - searchRadius)..(index + searchRadius))
        
        if (targetSuspect in searchRange) {
            return true
        }
    }
    
    return false
}