/**
 * This function checks if a given ticket number is valid or not.
 *
 * @param ticketNumbers A list of valid ticket numbers.
 * @param currentNumber The ticket number to be checked.
 * @return 'Valid' if the ticket number is valid, 'Invalid' otherwise.
 */
fun ticketCheck(ticketNumbers: List<Int>, currentNumber: Int): String {

    var index = 0
    while (index < ticketNumbers.size) {
        if (currentNumber == ticketNumbers[index]) {
            return "Valid"
        }
        index++
    }
    return "Invalid"
}
/**
 * This function checks if a given ticket number is valid or not.
 *
 * @param ticketNumbers A list of valid ticket numbers.
 * @param currentNumber The ticket number to be checked.
 * @return 'Valid' if the ticket number is valid, 'Invalid' otherwise.
 */
fun ticketCheck(ticketNumbers: List<Int>, currentNumber: Int): String {
/**
 * This function checks if a given ticket number is valid or not.
 *
 * @param ticketNumbers A list of valid ticket numbers.
 * @param currentNumber The ticket number to be checked.
 * @return 'Valid' if the ticket number is valid, 'Invalid' otherwise.
 */
fun ticketCheck(ticketNumbers: List<Int>, currentNumber: Int): String {

    var index = 0
    while (index < ticketNumbers.size) {
        if (currentNumber == ticketNumbers[index]) {
            return "Valid"
        }
        index++
    }
    return "Invalid"
}