def changeLast2Bits(origByte: int, newBits: int) -> int:
    """
    This function replaces the 2 LSBs of the given origByte with newBits
    """
    # First shift bits to left 2 times
    # Then shift bits to right 2 times, now we lost the last 2 bits
    # Perform OR operation between original_number and new_bits

    return (origByte >> 2) << 2 | newBits