Add Rotation problem

Interview Question 1.8 from CtCI