To make the subset of the string include the character at the start index, set i equal to start in the first loop parameter.
To make the subset include the character at the end index, use the <= operator to compare i and end in the second loop parameter.
Since characters are numbered by ones, increment i by one in the third loop parameter.