Razorthink Interview Question

5.write a program to left or right shift the input string as follows suppose left shift then enter i/p abcdaab enter the shift 2 o/p is ababcda