Use of UniqueString function

We could have initialized the string s anywhere else but just to initialize with a default value is the only use of UniqueString function?

u can simply call Fun function from int main using
(vector temp ,0 , “”)

its just a optional way to make uniqueString function and initialise s = " "