Informatica interview question

String rotation and pattern printing