Temenos interview question

Basic functionality codes on strings and Arrays.