They ask me to do a function in java in which the user passes a vector by parameters and the indexes in which he wants the sum to be made, that is, if I pass any vector t and the indexes 2 and 5 ( sum (t, 2,5)) would have to return the sum of the elements of the vector from index 2 to index 5. The syntax must be the following sum (int [] vecteros, int a, int b) { }