/**
 * This function finds the index of a stolen vehicle in the police records.
 *
 * @param policeRecords A list containing all the records of stolen vehicles.
 * @param plateNumber The plate number of the stolen vehicle.
 * @return The index of the stolen vehicle in the police records.
 */
fun findStolenVehicle(policeRecords: List<Map<String, String>>, plateNumber: String): Int {

    var index = -1

    // Iterate through the police records
    for (i in policeRecords.indices) {
        // Check if the current record matches the plate number
        if (policeRecords[i]["plate_number"] == plateNumber) {
            index = i
            break
        }
    }

    return index
}
/**
 * This function finds the index of a stolen vehicle in the police records.
 *
 * @param policeRecords A list containing all the records of stolen vehicles.
 * @param plateNumber The plate number of the stolen vehicle.
 * @return The index of the stolen vehicle in the police records.
 */
fun findStolenVehicle(policeRecords: List<Map<String, String>>, plateNumber: String): Int {
/**
 * This function finds the index of a stolen vehicle in the police records.
 *
 * @param policeRecords A list containing all the records of stolen vehicles.
 * @param plateNumber The plate number of the stolen vehicle.
 * @return The index of the stolen vehicle in the police records.
 */
fun findStolenVehicle(policeRecords: List<Map<String, String>>, plateNumber: String): Int {

    var index = -1

    // Iterate through the police records
    for (i in policeRecords.indices) {
        // Check if the current record matches the plate number
        if (policeRecords[i]["plate_number"] == plateNumber) {
            index = i
            break
        }
    }

    return index
}