Program that rotates any string supplied and computes the number of times the computation is performed