MyWays interview question

Intro, 1 que on strings