/**
 * This function takes a list of criminals and a name to search for. It returns true if the criminal is found,
 * otherwise, it returns false. The function uses short-circuiting with if-else and the 'in' operator for efficient searching.
 *
 * @param criminals List of criminals (strings)
 * @param nameToFind Name of the criminal to find
 * @return true if the criminal is found, false otherwise
 */
fun findCriminal(criminals: List<String>, nameToFind: String): Boolean {

    var found = false

    for (criminal in criminals) {
        if (criminal == nameToFind) {
            found = true
            break
        }
    }

    return found
}
/**
 * This function takes a list of criminals and a name to search for. It returns true if the criminal is found,
 * otherwise, it returns false. The function uses short-circuiting with if-else and the 'in' operator for efficient searching.
 *
 * @param criminals List of criminals (strings)
 * @param nameToFind Name of the criminal to find
 * @return true if the criminal is found, false otherwise
 */
fun findCriminal(criminals: List<String>, nameToFind: String): Boolean {
/**
 * This function takes a list of criminals and a name to search for. It returns true if the criminal is found,
 * otherwise, it returns false. The function uses short-circuiting with if-else and the 'in' operator for efficient searching.
 *
 * @param criminals List of criminals (strings)
 * @param nameToFind Name of the criminal to find
 * @return true if the criminal is found, false otherwise
 */
fun findCriminal(criminals: List<String>, nameToFind: String): Boolean {

    var found = false

    for (criminal in criminals) {
        if (criminal == nameToFind) {
            found = true
            break
        }
    }

    return found
}