Reversing a string

In reply to dave_59:

Hi Dave,

In this case also, s2 was not assigned ant default value. It was an empty string. But how did it accept?