oh i figured it out, but does he know that you cant do that becuase of what the result is?
i get it now, basically the i can't equal phrase size. so the it has to modified to i<phrase.size()
yep. because phrase size is one more than the last valid index of your array