IBM interview question

basic to advance java questions on arrays strings