JMZ Technologies interview question

basic string and array program