You are given a 16-bit register and a target pattern (also 16-bit). Check if the target pattern can be matched by any circularrotation of the register.
Example 1
Input: reg = 0b1011 0000 0000 0000, target = 0b0000 0000 0000 1011
Output: 1 (matches after left rotation by 13)