/**
 * The function takes two boolean inputs, x and y, and returns the result of their logical AND operation.
 *
 * Fill in the missing code below to implement the logical AND operation without using the ternary operator.
 *
 * @param x A boolean value.
 * @param y Another boolean value.
 * @return The result of the logical AND operation between x and y.
 */
fun bAnd(x: Boolean, y: Boolean): Boolean {

    // Solution 1: Using the 'and' operator and avoiding the ternary operator
    if (x) {
        return y
    } else {
        return false
    }

    // Solution 2: Using bitwise operators and avoiding the ternary operator
    return x and y
}
/**
 * The function takes two boolean inputs, x and y, and returns the result of their logical AND operation.
 *
 * Fill in the missing code below to implement the logical AND operation without using the ternary operator.
 *
 * @param x A boolean value.
 * @param y Another boolean value.
 * @return The result of the logical AND operation between x and y.
 */
fun bAnd(x: Boolean, y: Boolean): Boolean {
/**
 * The function takes two boolean inputs, x and y, and returns the result of their logical AND operation.
 *
 * Fill in the missing code below to implement the logical AND operation without using the ternary operator.
 *
 * @param x A boolean value.
 * @param y Another boolean value.
 * @return The result of the logical AND operation between x and y.
 */
fun bAnd(x: Boolean, y: Boolean): Boolean {

    // Solution 1: Using the 'and' operator and avoiding the ternary operator
    if (x) {
        return y
    } else {
        return false
    }

    // Solution 2: Using bitwise operators and avoiding the ternary operator
    return x and y
}