/**
 * This function takes in a list of integers and an integer as arguments. It iterates through the list using a while loop
 * and checks if each element is divisible by the given integer 'b' using the AND operator. It returns the count of elements
 * satisfying the condition.
 *
 * @param a List<Int> A list of integers.
 * @param b Int An integer.
 * @return Int The count of elements divisible by 'b'.
 */
fun whileLoopAndOperator(a: List<Int>, b: Int): Int {

    var i = 0
    var count = 0

    while (i < a.size) {
        if (a[i] % b == 0 && a[i] != 0) {
            count++
        }
        i++
    }

    return count
}
/**
 * This function takes in a list of integers and an integer as arguments. It iterates through the list using a while loop
 * and checks if each element is divisible by the given integer 'b' using the AND operator. It returns the count of elements
 * satisfying the condition.
 *
 * @param a List<Int> A list of integers.
 * @param b Int An integer.
 * @return Int The count of elements divisible by 'b'.
 */
fun whileLoopAndOperator(a: List<Int>, b: Int): Int {
/**
 * This function takes in a list of integers and an integer as arguments. It iterates through the list using a while loop
 * and checks if each element is divisible by the given integer 'b' using the AND operator. It returns the count of elements
 * satisfying the condition.
 *
 * @param a List<Int> A list of integers.
 * @param b Int An integer.
 * @return Int The count of elements divisible by 'b'.
 */
fun whileLoopAndOperator(a: List<Int>, b: Int): Int {

    var i = 0
    var count = 0

    while (i < a.size) {
        if (a[i] % b == 0 && a[i] != 0) {
            count++
        }
        i++
    }

    return count
}