Pointel Solutions interview question

two program from string and array concepts