Tejas Networks interview question

Java string and array based program