Problem Statement for substrings

``` For this problem, you will be given a string. You will be given a task to perform on this string. The task consists of two integers: L and R. For the task, you are to print the substring characters from L to R (including both L and R). If, however, either L or R are out of bounds, or a substring from L to R cannot be made, print "none". Input specification: First line: The string Second line: Two numbers: L, then R (seperated by spaces). Sample input 1: abcdefg 1 3 Sample output 1: abc Sample input 2: school 3 1 Sample output 2: none ```


🕑 Time limit: 4.0 seconds
⚎ Memory limit: 256.0 MB