Société Générale interview question

What if Str is not a string and if it is an object?.