Solve Exercise 2-8: rightrot()