Microsoft interview question

LC Style, Array and Strings Question