Exercise 2-8 Write a function rightrot(x, n) that returns the value of the integer x rotated to the right by n bit positions.