Accenture interview question

coding related strings and arrays