Completed all the tests for leftrightRotate