Given a string S and two integers L and R. Print the characters in the range L to R of the string.
NOTE: Assume zero based indexing.
First line of input contains a single integer T, which denotes the number of testcases. T testcases follows, first line of each testcase contains a string S. Second line consists of two integers L and R.
Corresponding to each testcase in new line, print the required output.
1 <= T <= 100
1 <= length(S) <= 103
1 <= L <= 800
1 <= R <= 900
Testcase 1: The characters from 0 to 5 of the given string: cdbkdu
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.