IBM Interview Question

basic to advance java questions on arrays strings