How should our function handle other cases, like where the “start” character appears after the “end character”?
For example, should this code:
substring_between_letters(word = "adogb", start = "b", end = "a")
return “dog”, or simply return the word “adogb”
Another case is if the two arguments appear in the proper order, but only after they appear in the wrong order, like
substring_between_letters(word = "adogbruna", start = "b", end = "a"
Should this print “dog”, “run”, or the word?