In the recursive function (sort) The last element is poped back and stored in the variable and then the recursive function sorts the rest of the vector and in the induction step