/**
 * A veterinarian wants to check the vaccination status of a pet based on their ID.
 * Given the ID of a pet and a list of vaccination records, write a function that
 * checks if the pet has been vaccinated by searching for the pet's ID in the records.
 *
 * The function should return true if the pet has been vaccinated and false otherwise.
 *
 * @param petId The ID of the pet to check vaccination status for.
 * @param vaccinationRecords A list of IDs representing pets that have been vaccinated.
 * @return true if the pet has been vaccinated, false otherwise.
 */
fun checkVaccinationStatus(petId: Int, vaccinationRecords: List<Int>): Boolean {

    var index = 0
    while (index < vaccinationRecords.size) {
        if (vaccinationRecords[index] == petId) {
            return true
        }
        index++
    }
    return false
}
/**
 * A veterinarian wants to check the vaccination status of a pet based on their ID.
 * Given the ID of a pet and a list of vaccination records, write a function that
 * checks if the pet has been vaccinated by searching for the pet's ID in the records.
 *
 * The function should return true if the pet has been vaccinated and false otherwise.
 *
 * @param petId The ID of the pet to check vaccination status for.
 * @param vaccinationRecords A list of IDs representing pets that have been vaccinated.
 * @return true if the pet has been vaccinated, false otherwise.
 */
fun checkVaccinationStatus(petId: Int, vaccinationRecords: List<Int>): Boolean {
/**
 * A veterinarian wants to check the vaccination status of a pet based on their ID.
 * Given the ID of a pet and a list of vaccination records, write a function that
 * checks if the pet has been vaccinated by searching for the pet's ID in the records.
 *
 * The function should return true if the pet has been vaccinated and false otherwise.
 *
 * @param petId The ID of the pet to check vaccination status for.
 * @param vaccinationRecords A list of IDs representing pets that have been vaccinated.
 * @return true if the pet has been vaccinated, false otherwise.
 */
fun checkVaccinationStatus(petId: Int, vaccinationRecords: List<Int>): Boolean {

    var index = 0
    while (index < vaccinationRecords.size) {
        if (vaccinationRecords[index] == petId) {
            return true
        }
        index++
    }
    return false
}