Electronic Arts interview question

very easy and straightforward string question.