I am currently reading book from Allex Allain and there is practice problem: enter image description here
And i dont know how to think about this problem and i am somehow stuck , should i first find every tag and save it to array or vector ? and then compare tags from vector with original string ? and make som conditions ? I dont looking for code from you i want to solve it by myself i am just looking for inspiration or some ideas , or some useful methods i could use. thank you.