1) Problem: 101001, right rotation 2
Highlight the rightmost 2 digits.
Move these two bits to the front of the string to find the answer.
Answer: 011010
2) Problem: 11111111, left rotation 5
This example shows how sometimes it is worth examining the binary string before performing the rotation. In this case, a quick review will show us that the binary string is all 1s, which means that the resulting string will be the same regardless of the rotation.
Answer: 11111111
3) Problem: 101001011, right rotation 10
This example again proves that a little reconnaissance can save you problem-solving time. The binary string provided is 9 digits long, which means a rotation of 10 will bring each bit back to its original position, leaving the resulting string unchanged from the original.
Answer: 101001011