Intelliquity interview question

Normal coding questions of strings and arrays