Left Rotation string will contain the string rotated Anti - Clockwise Right Rotation string will contain the string rotated Clockwise
var left_rot_str1 = [ ] ; var right_rot_str1 = [ ] ; var left_flag = true , right_flag = true ; var str1_size = str1 . length ;