title: Check integer is bit rotation of another integer
body: <p>Given two integers a and b, how can we check that b is a rotated version of a?</p>
  
  <p>For example if I have <code>a = 0x01020304</code> (in binary <code>0000 0001 0000 0010 0000 0011 0000 0100</code>), then the following b values are correct:</p>
  
  <ul>
  <li>...</li>
  <li><code>0x4080C1</code> (right-rotated by 2) </li>
  <li><code>0x810182</code> (right-rotated by 1)</li>
  <li><code>0x2040608</code> (left-rotated by 1)</li>
  <li><code>0x4080C10</code> (left-rotated by 2)</li>
  <li>...</li>
  </ul>