Updated rightLeftRotate() and added four test codes