title: Invert specific bits using bitwise NOT (no XOR)
body: <p>How can I use Bitwise Not to invert specific bits for x number? I know we can do this use XOR and mask but question requires use NOT.</p>
  <p>I need to invert a group of bits starting at a given position. The variable inside the function includes original value, position wants to start and width = number of bits I want to invert.</p>
  <p>I use the shift bit to start from a given position but how can I ensure only x number of bits are inverted using NOT Bitwise function?</p>