/**
 * This function calculates the modulus of the room width and complement operator of the room length.
 *
 * Modulus: The remainder when the first operand is divided by the second operand.
 * Complement Operator: A unary operator that returns the bitwise complement of a number.
 *
 * @param roomWidth The width of the room in meters.
 * @param roomLength The length of the room in meters.
 * @return Pair<Int, Int> A pair containing the modulus of room width and complement operator of room length.
 */
fun calculateModulusAndComplement(roomWidth: Int, roomLength: Int): Pair<Int, Int> {

    val modulusWidth = (0 until roomWidth).map { if (roomWidth % 2 == 1) 1 else 0 }
    val complementLength = (0 until roomLength).map { roomLength.inv() }

    return Pair(modulusWidth[0], complementLength[0])
}
/**
 * This function calculates the modulus of the room width and complement operator of the room length.
 *
 * Modulus: The remainder when the first operand is divided by the second operand.
 * Complement Operator: A unary operator that returns the bitwise complement of a number.
 *
 * @param roomWidth The width of the room in meters.
 * @param roomLength The length of the room in meters.
 * @return Pair<Int, Int> A pair containing the modulus of room width and complement operator of room length.
 */
fun calculateModulusAndComplement(roomWidth: Int, roomLength: Int): Pair<Int, Int> {
/**
 * This function calculates the modulus of the room width and complement operator of the room length.
 *
 * Modulus: The remainder when the first operand is divided by the second operand.
 * Complement Operator: A unary operator that returns the bitwise complement of a number.
 *
 * @param roomWidth The width of the room in meters.
 * @param roomLength The length of the room in meters.
 * @return Pair<Int, Int> A pair containing the modulus of room width and complement operator of room length.
 */
fun calculateModulusAndComplement(roomWidth: Int, roomLength: Int): Pair<Int, Int> {

    val modulusWidth = (0 until roomWidth).map { if (roomWidth % 2 == 1) 1 else 0 }
    val complementLength = (0 until roomLength).map { roomLength.inv() }

    return Pair(modulusWidth[0], complementLength[0])
}