When she was a girl of twenty ... what is it’s func in the sentence?

In the sentence, "When she was a girl of twenty," the word "it's" is a contraction of "it is." This contraction does not have a specific function in the sentence as it is not used.

In the sentence "When she was a girl of twenty," the phrase "of twenty" functions as an adjectival phrase modifying the noun "girl." It provides additional information about the age of the girl.