I am currently making a calculator that would separate the user input into terms based on (+,-,*,/), I cannot figure out how to make the last index of (+,-,*,/) before a certain