IBM Interview Question

Various functions used in JS to reverse, rotate strings