IBM interview question

Various functions used in JS to reverse, rotate strings