Doubt in Vectors

I am facing the problem with string inside vectors.

We are given strings inside vectors and I want to identify anagrams among the strings. But I don’t know how to loop inside a vector containing strings and check it.

Can I get a code doing the same for reference?

Stuti your doubt has been resolved, pls mark the same
Thank You