found a solution of left rotation of a ring